Code generation (#12) #22
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 | |
on: | |
push: | |
branches: | |
- 'main' | |
env: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
jobs: | |
build_linux_windows: | |
runs-on: ubuntu-latest | |
steps: | |
- name: install wine | |
run: sudo dpkg --add-architecture i386 && sudo apt-get update -y && sudo apt-get install -y libgcc-s1:i386 libstdc++6:i386 wine32 wine | |
- uses: actions/checkout@v3 | |
- name: check env variables | |
run: ./check-envs.sh | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 20 | |
cache: 'npm' | |
- name: install dependencies | |
run: npm install | |
- name: build | |
run: npm run build | |
- name: publish | |
env: | |
gh_token: ${{ secrets.GITHUB_TOKEN }} | |
run: npm run release | |
# build_on_mac: | |
# runs-on: macos-latest | |
# env: | |
# APPLE_ID: ${{ secrets.APPLE_ID }} | |
# APPLE_ID_PASS: ${{ secrets.APPLE_ID_PASS }} | |
# steps: | |
# - uses: actions/checkout@v2 | |
# - name: check env variables | |
# run: ./check-envs.sh --mac | |
# - uses: actions/setup-node@master | |
# with: | |
# node-version: 20 | |
# - name: install dependencies | |
# run: npm install | |
# - name: build | |
# run: npm run build | |
# - name: publish | |
# run: npm run release | |
# build_on_win: | |
# runs-on: windows-latest | |
# steps: | |
# - uses: actions/checkout@v2 | |
# - name: check env variables | |
# run: .\check-envs.ps1 | |
# - uses: actions/setup-node@master | |
# with: | |
# node-version: 20 | |
# - name: install dependencies | |
# run: npm install | |
# - name: build | |
# run: npm run build | |
# - name: publish | |
# env: | |
# gh_token: ${{ secrets.GITHUB_TOKEN }} | |
# run: npm run release |