Properly specify OS for artifacts #6
This file contains hidden or 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 3DS-RPC' | |
| on: [push, pull_request, release] | |
| jobs: | |
| build: | |
| name: 'Build 3DS-RPC' | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: ['windows-latest', 'macos-latest'] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.12' | |
| # Windows Build | |
| - name: "Build" | |
| if: matrix.os == 'windows-latest' | |
| run: ./scripts/build.bat | |
| - uses: actions/upload-artifact@v4 | |
| if: matrix.os == 'windows-latest' | |
| with: | |
| name: 3DS-RPC.exe | |
| path: dist/3DS-RPC.exe | |
| # macOS Build | |
| - name: "Build" | |
| if: matrix.os == 'macos-latest' | |
| run: | | |
| ./scripts/build.sh && | |
| cd ./dist && | |
| zip -yr "3DS-RPC Mac.zip" 3DS-RPC.app/ | |
| - uses: actions/upload-artifact@v4 | |
| if: matrix.os == 'macos-latest' | |
| with: | |
| name: '3DS-RPC Mac.zip' | |
| path: 'dist/3DS-RPC Mac.zip' | |
| # If this is a release, additionally attach | |
| # the created applications to the release. | |
| - name: "Upload Release Build" | |
| if: github.ref_type == 'tag' | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| files: dist/3DS-RPC* |