|
| 1 | +name: Build |
| 2 | + |
| 3 | +on: |
| 4 | + workflow_call: |
| 5 | + workflow_dispatch: |
| 6 | + |
| 7 | +env: |
| 8 | + CARGO_TERM_COLOR: always |
| 9 | + |
| 10 | +jobs: |
| 11 | + build: |
| 12 | + strategy: |
| 13 | + fail-fast: false |
| 14 | + matrix: |
| 15 | + target: |
| 16 | + - { platform: linux, arch: x86_64, os: ubuntu-latest } |
| 17 | +# - { platform: linux, arch: x86_32, os: ubuntu-22.04 } |
| 18 | +# - { platform: linux, arch: arm64, os: ubuntu-22.04-arm } |
| 19 | +# - { platform: linux, arch: arm32, os: ubuntu-22.04-arm } |
| 20 | + - { platform: windows, arch: x86_64, os: windows-latest } |
| 21 | +# - { platform: windows, arch: x86_32, os: windows-latest } |
| 22 | +# - { platform: windows, arch: arm64, os: windows-latest } |
| 23 | + - { platform: macos, arch: universal, os: macos-latest } |
| 24 | + |
| 25 | + runs-on: ${{ matrix.target.os }} |
| 26 | + |
| 27 | + steps: |
| 28 | + - uses: actions/checkout@v4 |
| 29 | + - run: rustup toolchain install stable --profile minimal |
| 30 | + - uses: Swatinem/rust-cache@v2 |
| 31 | + with: |
| 32 | + prefix-key: "main" |
| 33 | + save-if: ${{ github.ref == 'refs/heads/main' }} |
| 34 | + - name: Build |
| 35 | + run: cargo build --release --verbose |
| 36 | + - name: Upload Artifact |
| 37 | + uses: actions/upload-artifact@v4 |
| 38 | + with: |
| 39 | + name: Monoteny-${{ matrix.target.platform }}-${{ matrix.target.arch }} |
| 40 | + path: | |
| 41 | + ${{ github.workspace }}/target/release/monoteny |
0 commit comments