From 17415673cf3884868751f119b7b32da5ec2fd92a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Garillot?= Date: Mon, 4 May 2020 07:04:03 -0700 Subject: [PATCH] Cross-compile merlin on PowerPC --- .github/workflows/main.yml | 64 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..2708cac --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,64 @@ +name: Test merlin + +on: + push: + pull_request: + types: [opened, repoened, synchronize] + +jobs: + native-test: + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + rust_toolchain: [nightly, stable] + os: [ubuntu-latest] + timeout-minutes: 10 + steps: + - uses: actions/checkout@v2 + - name: Install Rust ${{ matrix.rust_toolchain }} + uses: actions-rs/toolchain@v1 + with: + toolchain: ${{ matrix.rust_toolchain }} + profile: minimal + default: true + - name: Build + uses: actions-rs/cargo@v1 + with: + command: build + - name: Test + uses: actions-rs/cargo@v1 + with: + command: test + + cross-linux-test: + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + rust_target: + - powerpc-unknown-linux-gnu + - powerpc64-unknown-linux-gnu + timeout-minutes: 10 + steps: + - uses: actions/checkout@v2 + - name: Install Rust nightly + uses: actions-rs/toolchain@v1 + with: + toolchain: nightly + profile: minimal + target: ${{ matrix.rust_target }} + default: true + - name: Build + uses: actions-rs/cargo@v1 + with: + # see https://github.com/rust-embedded/cross + use-cross: true + command: build + args: --target ${{ matrix.rust_target }} + - name: Test + uses: actions-rs/cargo@v1 + with: + use-cross: true + command: test + args: --target ${{ matrix.rust_target }} -- --test-threads=1