forked from janek/mostr
build(ci): add github ci
This commit is contained in:
parent
29ef9634a4
commit
cdf3d3a805
3 changed files with 55 additions and 3072 deletions
48
.github/workflows/ci.yml
vendored
Normal file
48
.github/workflows/ci.yml
vendored
Normal file
|
@ -0,0 +1,48 @@
|
||||||
|
on: [push, pull_request, create]
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
# https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs
|
||||||
|
os: [ubuntu-latest, windows-latest, macos-latest]
|
||||||
|
jdk: [11]
|
||||||
|
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
|
||||||
|
#release:
|
||||||
|
# needs: [build, build-arm]
|
||||||
|
# runs-on: ubuntu-latest
|
||||||
|
# if: startsWith(github.ref, 'refs/tags/')
|
||||||
|
# steps:
|
||||||
|
# - uses: actions/download-artifact@v4 # https://github.com/actions/download-artifact
|
||||||
|
# with:
|
||||||
|
# pattern: software-challenge-gui-${{ github.sha }}-*
|
||||||
|
# path: build
|
||||||
|
# merge-multiple: true
|
||||||
|
# - name: Release ${{ github.ref }}
|
||||||
|
# uses: softprops/action-gh-release@v1 # https://github.com/softprops/action-gh-release
|
||||||
|
# with:
|
||||||
|
# files: build/*.jar
|
||||||
|
# env:
|
||||||
|
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
3077
Cargo.lock
generated
3077
Cargo.lock
generated
File diff suppressed because it is too large
Load diff
|
@ -26,7 +26,7 @@ rustyline = { git = "https://github.com/xeruf/rustyline", rev = "465b14d" }
|
||||||
keyring = { version = "3", features = ["apple-native", "windows-native", "linux-native-sync-persistent", "crypto-rust"] }
|
keyring = { version = "3", features = ["apple-native", "windows-native", "linux-native-sync-persistent", "crypto-rust"] }
|
||||||
directories = "5.0"
|
directories = "5.0"
|
||||||
whoami = "1.5"
|
whoami = "1.5"
|
||||||
slint = "1.8"
|
# slint = "1.8"
|
||||||
# Application Utils
|
# Application Utils
|
||||||
itertools = "0.12"
|
itertools = "0.12"
|
||||||
chrono = "0.4"
|
chrono = "0.4"
|
||||||
|
|
Loading…
Add table
Reference in a new issue