build(ci): add artifact upload

This commit is contained in:
xeruf 2024-12-06 21:16:39 +01:00
parent cdf3d3a805
commit 1df75055df
1 changed files with 17 additions and 19 deletions

View File

@ -11,25 +11,23 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
- run: cargo test --all-features
#- name: Assemble fat jar
# run: ./gradlew shadowJar
#- name: Upload jar as artifact
# uses: actions/upload-artifact@v4
# with:
# name: software-challenge-gui-${{ github.sha }}-${{ matrix.os }}
# path: build/*.jar
build-arm:
runs-on: ${{ matrix.os }}
if: startsWith(github.ref, 'refs/tags/')
strategy:
matrix:
os: [macos-latest-large]
jdk: [11]
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
- run: cargo test --all-features
- run: cargo test
- run: cargo build --release
- uses: actions/upload-artifact@v4
with:
name: mostr_${{ github.sha }}_${{ matrix.os }}
path: target/release/mostr
#build-arm:
# runs-on: ${{ matrix.os }}
# if: startsWith(github.ref, 'refs/tags/')
# strategy:
# matrix:
# os: [macos-latest-large]
# jdk: [11]
# steps:
# - uses: actions/checkout@v4
# - uses: actions-rust-lang/setup-rust-toolchain@v1
# - run: cargo test --all-features
#release:
# needs: [build, build-arm]
# runs-on: ubuntu-latest