fix: prebuilds #126
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: build-linux | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: MatteoH2O1999/setup-python@v1 | |
with: | |
python-version: "2.7.x" | |
- run: sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y | |
- run: sudo apt-get update | |
- run: sudo apt-get install libxtst-dev libpng++-dev gcc-11 g++-11 -y | |
- run: sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-11 70 --slave /usr/bin/g++ g++ /usr/bin/g++-11 | |
- run: npm install --loglevel verbose | |
- run: npm run prebuild | |
env: | |
GH_TOKEN: ${{ secrets.GH_TOKEN }} | |
- name: upload binaries | |
uses: actions/github-script@v6 | |
with: | |
script: | | |
const zip = require('cross-zip') | |
const script = require('./scripts/upload-binaries.js'); | |
await script({ | |
github, | |
context, | |
core, | |
zip | |
}); |