|
| 1 | +name: Debug |
| 2 | + |
| 3 | +on: |
| 4 | + push: |
| 5 | + pull_request: |
| 6 | + |
| 7 | +jobs: |
| 8 | + build: |
| 9 | + strategy: |
| 10 | + matrix: |
| 11 | + include: |
| 12 | + - job-name: Windows x86_64 |
| 13 | + target: x86_64-pc-windows-msvc |
| 14 | + runs-on: windows-latest |
| 15 | + artifact-name: pesde-debug-${{ github.sha }}-windows-x86_64 |
| 16 | + |
| 17 | + - job-name: Linux x86_64 |
| 18 | + target: x86_64-unknown-linux-gnu |
| 19 | + runs-on: ubuntu-latest |
| 20 | + artifact-name: pesde-debug-${{ github.sha }}-linux-x86_64 |
| 21 | + |
| 22 | + - job-name: Linux aarch64 |
| 23 | + target: aarch64-unknown-linux-gnu |
| 24 | + runs-on: ubuntu-latest |
| 25 | + artifact-name: pesde-debug-${{ github.sha }}-linux-aarch64 |
| 26 | + |
| 27 | + - job-name: macOS x86_64 |
| 28 | + target: x86_64-apple-darwin |
| 29 | + runs-on: macos-latest |
| 30 | + artifact-name: pesde-debug-${{ github.sha }}-macos-x86_64 |
| 31 | + |
| 32 | + - job-name: macOS aarch64 |
| 33 | + target: aarch64-apple-darwin |
| 34 | + runs-on: macos-latest |
| 35 | + artifact-name: pesde-debug-${{ github.sha }}-macos-aarch64 |
| 36 | + name: Build for ${{ matrix.job-name }} |
| 37 | + runs-on: ${{ matrix.runs-on }} |
| 38 | + |
| 39 | + steps: |
| 40 | + - name: Checkout |
| 41 | + uses: actions/checkout@v4 |
| 42 | + - name: Install Rust toolchain |
| 43 | + uses: dtolnay/rust-toolchain@stable |
| 44 | + - name: Compile in debug mode |
| 45 | + run: cargo build --target ${{ matrix.target }} |
| 46 | + - name: Upload artifact |
| 47 | + uses: actions/upload-artifact@v3 |
| 48 | + with: |
| 49 | + name: ${{ matrix.artifact-name }} |
| 50 | + path: target/${{ matrix.target }}/debug/pesde* |
0 commit comments