Use Python 3.10 for workflow #174
Workflow file for this run
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: prebuild | |
on: | |
push: | |
branches: | |
- master | |
tags: | |
- '*' | |
pull_request: | |
branches: | |
- master | |
workflow_dispatch: | |
jobs: | |
prebuild: | |
strategy: | |
matrix: | |
include: | |
- name: darwin | |
os: macos-11 | |
node: x64 | |
- name: linux | |
os: ubuntu-latest | |
- name: win32 | |
os: windows-2019 | |
name: Build ${{ matrix.name }} | |
runs-on: ${{ matrix.os }} | |
steps: | |
- if: matrix.node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 14.x | |
architecture: ${{ matrix.node }} | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: '3.10' | |
- uses: actions/checkout@v3 | |
- name: Install dependencies (ubuntu-latest) | |
# Use g++-9 only on versions after 'ubuntu-18.04' | |
if: ${{ matrix.os == 'ubuntu-latest' }} | |
run: | | |
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test | |
sudo apt -qq update | |
sudo apt install -y g++-9 | |
export CC="g++-9" | |
- run: npm install --ignore-scripts | |
- run: npm run prebuild-${{ matrix.name }} | |
- run: tar -zcvf ${{ matrix.name }}.tar.gz -C prebuilds . | |
- uses: actions/upload-artifact@v2 | |
with: | |
name: ${{ matrix.name }} | |
path: ${{ matrix.name }}.tar.gz | |
retention-days: 1 | |
release: | |
needs: prebuild | |
name: Release | |
runs-on: ubuntu-latest | |
if: startsWith(github.ref, 'refs/tags/') | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/download-artifact@v2 | |
with: | |
path: artifacts | |
- uses: docker://antonyurchenko/git-release:v4 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
args: artifacts/*/*.tar.gz |