From 1084c80f14b4524e56c815784a7bdd99c850581d Mon Sep 17 00:00:00 2001 From: Hannes <55623006+umgefahren@users.noreply.github.com> Date: Thu, 13 May 2021 13:55:19 +0200 Subject: [PATCH] Create rust.yml --- .github/workflows/rust.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/rust.yml diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml new file mode 100644 index 0000000..ce8e6a5 --- /dev/null +++ b/.github/workflows/rust.yml @@ -0,0 +1,34 @@ +name: Rust + +on: + push + +env: + CARGO_TERM_COLOR: always + +jobs: + build: + + strategy: + matrix: + platform: [ubuntu-latest, macos-latest, windows-latest] + + runs-on: ${{ matrix.platform }} + + steps: + - uses: actions/checkout@v2 + - name: Build + run: cargo build --verbose + - name: Run tests + run: cargo test --verbose + + build2: + runs-on: [macos-latest] + + steps: + - uses: actions/checkout@v2 + - name: Cross Build iOS + run: cargo build --target aarch64-apple-ios + - name: Cross Build MacOS ARM + run: cargo build --target aarch64-apple-darwin +