name: Package on: [push] jobs: # build-macos: # runs-on: macos-latest # timeout-minutes: 15 # strategy: # fail-fast: false # matrix: # python-version: ['3.9', '3.11'] # node-version: ['20'] # steps: # - uses: actions/checkout@v2 # - name: Set up Python ${{ matrix.python-version }} # uses: actions/setup-python@v2 # with: # python-version: ${{ matrix.python-version }} # - uses: actions/checkout@v2 # - name: Set up Node ${{ matrix.node-version }} # uses: actions/setup-node@v2 # with: # node-version: ${{ matrix.node-version }} # - name: Build .app # run: | # npm run presenter-make # build/build-macos.sh # zip -r build/output/BAPSicle.zip build/output/BAPSicle.app # - name: Extract branch name # shell: bash # run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF##*/})" # id: extract_branch # - name: Archive Build # uses: actions/upload-artifact@v2 # with: # name: BAPSicle-${{ steps.extract_branch.outputs.branch }}-${{github.sha}}-MacOS # path: | # build/output/BAPSicle.zip build-ubuntu: runs-on: ubuntu-latest timeout-minutes: 15 strategy: fail-fast: false matrix: python-version: ['3.8','3.9', '3.11'] node-version: ['20'] steps: - uses: actions/checkout@v2 - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v2 with: python-version: ${{ matrix.python-version }} - uses: actions/checkout@v2 - name: Set up Node ${{ matrix.node-version }} uses: actions/setup-node@v2 with: node-version: ${{ matrix.node-version }} - name: Build executable run: | npm run presenter-make build/build-linux.sh - name: Extract branch name shell: bash run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF##*/})" id: extract_branch - name: Archive Build uses: actions/upload-artifact@v2 with: name: BAPSicle-${{ steps.extract_branch.outputs.branch }}-${{github.sha}}-Ubuntu path: | build/output/BAPSicle build-windows: runs-on: windows-latest timeout-minutes: 15 strategy: fail-fast: false matrix: python-version: ['3.9', '3.11'] node-version: ['20'] steps: - uses: actions/checkout@v2 - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v2 with: python-version: ${{ matrix.python-version }} - uses: actions/checkout@v2 - name: Set up Node ${{ matrix.node-version }} uses: actions/setup-node@v2 with: node-version: ${{ matrix.node-version }} - name: Build .exe run: | npm run presenter-make build/build-windows.bat no-venv - name: Extract branch name shell: bash run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF##*/})" id: extract_branch - name: Archive Build uses: actions/upload-artifact@v2 with: name: BAPSicle-${{ steps.extract_branch.outputs.branch }}-${{github.sha}}-Windows path: | build/output/BAPSicle.exe install/