Fix fs.readSync
potentially throwing EOF Error on Windows
#107
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
pull_request: | |
release: | |
types: [published] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [20.x] | |
python-version: ['3.11'] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Compile ldid | |
run: | | |
sudo apt install -y libplist-dev | |
git clone git://git.saurik.com/ldid.git | |
g++ -pipe -o ldid/ldid ldid/ldid.cpp -I. -x c ldid/lookup2.c -lcrypto -lplist -Os -fwhole-program -flto -s | |
echo "${{github.workspace}}/ldid" >> $GITHUB_PATH | |
- run: npm ci | |
- run: npm run build | |
- run: python tests/test.py | |
- name: Upload to Artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: Artifacts | |
path: bin/*.zip | |
- name: Upload to Release | |
if: github.event_name == 'release' | |
uses: svenstaro/upload-release-action@v2 | |
with: | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
file: bin/*.zip | |
tag: ${{ github.ref }} | |
file_glob: true |