From 84003f31e7b5a267c7b392feae4fa55b5764fb62 Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Wed, 13 Jan 2021 10:18:53 -0800 Subject: Add CI for cross compilation cases --- .github/workflows/main.yml | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d62d342..a9ed19e 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -72,6 +72,47 @@ jobs: TRYBUILD=overwrite cargo test --release --features "${{ matrix.lua }} vendored async send serialize" -- --ignored shell: bash + test_arm_cross_macos: + name: Test Cross compilation for ARM from Intel on macOS + runs-on: macos-11.0 + strategy: + matrix: + lua: [lua54, lua53, lua52, lua51] + steps: + - uses: actions/checkout@v2 + - uses: actions-rs/toolchain@v1 + with: + toolchain: nightly + target: x86_64-apple-darwin + override: true + - name: Add ARM target + run: rustup target add aarch64-apple-darwin + - name: Cross compile + run: cargo build --target aarch64-apple-darwin --features "${{ matrix.lua }} async send serialize vendored" + + test_arm_cross_ubuntu: + name: Test cross compilation for ARM from Intel on Linux + runs-on: ubuntu-18.04 + strategy: + matrix: + lua: [lua54, lua53, lua52, lua51] + steps: + - uses: actions/checkout@v2 + - uses: actions-rs/toolchain@v1 + with: + toolchain: nightly + target: x86_64-unknown-linux-gnu + override: true + - name: Add ARM target + run: rustup target add armv7-unknown-linux-gnueabihf + - name: Install ARM compiler toolchain + run: | + sudo apt-get update -y + sudo apt-get install -y --no-install-recommends gcc-arm-linux-gnueabihf + - name: Cross compile + run: cargo build --target armv7-unknown-linux-gnueabihf --features "${{ matrix.lua }} async send serialize vendored" + shell: bash + test_luajit_macos: name: Test LuaJIT on macOS runs-on: macos-latest -- cgit v1.2.3