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 1/7] 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 + From a949b4e884c4e5f268e6c5e2cb795ff312a2b05e Mon Sep 17 00:00:00 2001 From: Hannes <55623006+umgefahren@users.noreply.github.com> Date: Thu, 13 May 2021 14:00:54 +0200 Subject: [PATCH 2/7] Update rust.yml --- .github/workflows/rust.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index ce8e6a5..9563af7 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -18,15 +18,19 @@ jobs: steps: - uses: actions/checkout@v2 - name: Build - run: cargo build --verbose + run: cargo +nightly build - name: Run tests - run: cargo test --verbose + run: cargo +nightly test build2: runs-on: [macos-latest] steps: - uses: actions/checkout@v2 + - name: Install Target iOS + run: rustup target add aarch64-apple-ios + - name: Install Target MacOS ARM + run: rustup target add aarch64-apple-darwin - name: Cross Build iOS run: cargo build --target aarch64-apple-ios - name: Cross Build MacOS ARM From 3d1bd677038ba81fe94865d7d6ca646ffb8ae9ef Mon Sep 17 00:00:00 2001 From: Hannes <55623006+umgefahren@users.noreply.github.com> Date: Thu, 13 May 2021 14:06:13 +0200 Subject: [PATCH 3/7] Update rust.yml --- .github/workflows/rust.yml | 45 +++++++++++++++++++++----------------- 1 file changed, 25 insertions(+), 20 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 9563af7..6470700 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -16,23 +16,28 @@ jobs: runs-on: ${{ matrix.platform }} steps: - - uses: actions/checkout@v2 - - name: Build - run: cargo +nightly build - - name: Run tests - run: cargo +nightly test - - build2: - runs-on: [macos-latest] - - steps: - - uses: actions/checkout@v2 - - name: Install Target iOS - run: rustup target add aarch64-apple-ios - - name: Install Target MacOS ARM - run: rustup target add aarch64-apple-darwin - - name: Cross Build iOS - run: cargo build --target aarch64-apple-ios - - name: Cross Build MacOS ARM - run: cargo build --target aarch64-apple-darwin - + - uses: actions/checkout@v2 + - name: Install latest nightly + uses: actions-rs/toolchain@v1 + with: + toolchain: nightly + override: true + components: rustfmt, clippy + + # `cargo check` command here will use installed `nightly` + # as it is set as an "override" for current directory + + - name: Run cargo check + uses: actions-rs/cargo@v1 + with: + command: check + + - name: Run cargo test + uses: actions-rs/cargo@v1 + with: + command: test + + - name: Run cargo build + uses: actions-rs/cargo@v1 + with: + command: build From d5f1730a9d86dc9dfc2798dc689663780d5c7499 Mon Sep 17 00:00:00 2001 From: Hannes <55623006+umgefahren@users.noreply.github.com> Date: Thu, 13 May 2021 14:14:19 +0200 Subject: [PATCH 4/7] Update rust.yml --- .github/workflows/rust.yml | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 6470700..d6dd09b 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -7,7 +7,7 @@ env: CARGO_TERM_COLOR: always jobs: - build: + build-and-test-native: strategy: matrix: @@ -41,3 +41,25 @@ jobs: uses: actions-rs/cargo@v1 with: command: build + + build-and-test-apple: + runs-on: [macos-latest] + steps: + - uses: actions/checkout@v2 + - name: Install latest nightly + uses: actions-rs/toolchain@v1 + with: + toolchain: nightly + override: true + targets: aarch64-apple-darwin, aarch64-apple-ios + components: rustfmt, clippy + + - name: Run cargo test + uses: actions-rs/cargo@v1 + with: + command: test + + - name: Run cargo build + uses: actions-rs/cargo@v1 + with: + command: build From 7e8584d57fd7779995e447b767629c9335bc6e14 Mon Sep 17 00:00:00 2001 From: Hannes <55623006+umgefahren@users.noreply.github.com> Date: Thu, 13 May 2021 14:15:51 +0200 Subject: [PATCH 5/7] Update rust.yml --- .github/workflows/rust.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index d6dd09b..9a09193 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -51,7 +51,7 @@ jobs: with: toolchain: nightly override: true - targets: aarch64-apple-darwin, aarch64-apple-ios + target: aarch64-apple-darwin, aarch64-apple-ios components: rustfmt, clippy - name: Run cargo test From b4453116fe032378fcec498cc3a7ed3597e9d27f Mon Sep 17 00:00:00 2001 From: Hannes <55623006+umgefahren@users.noreply.github.com> Date: Thu, 13 May 2021 14:18:54 +0200 Subject: [PATCH 6/7] Update rust.yml --- .github/workflows/rust.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 9a09193..927d93b 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -42,7 +42,7 @@ jobs: with: command: build - build-and-test-apple: + build-and-test-apple-silicon-mac: runs-on: [macos-latest] steps: - uses: actions/checkout@v2 @@ -51,7 +51,7 @@ jobs: with: toolchain: nightly override: true - target: aarch64-apple-darwin, aarch64-apple-ios + target: aarch64-apple-darwin components: rustfmt, clippy - name: Run cargo test From dee1992f4421e81a76ca78e768d20b221d9c700d Mon Sep 17 00:00:00 2001 From: Hannes <55623006+umgefahren@users.noreply.github.com> Date: Thu, 13 May 2021 14:23:36 +0200 Subject: [PATCH 7/7] Update rust.yml --- .github/workflows/rust.yml | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 927d93b..3b6eed7 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -42,7 +42,7 @@ jobs: with: command: build - build-and-test-apple-silicon-mac: + build-and-test-mac-arm: runs-on: [macos-latest] steps: - uses: actions/checkout@v2 @@ -63,3 +63,25 @@ jobs: uses: actions-rs/cargo@v1 with: command: build + + build-and-test-ios: + runs-on: [macos-latest] + steps: + - uses: actions/checkout@v2 + - name: Install latest nightly + uses: actions-rs/toolchain@v1 + with: + toolchain: nightly + override: true + target: aarch64-apple-ios + components: rustfmt, clippy + + - name: Run cargo test + uses: actions-rs/cargo@v1 + with: + command: test + + - name: Run cargo build + uses: actions-rs/cargo@v1 + with: + command: build