Skip to content

Commit

Permalink
👷 Add cross compile build for x86_64-unknown-redox
Browse files Browse the repository at this point in the history
  • Loading branch information
ChanTsune committed Oct 15, 2024
1 parent 73e6a5b commit f3444c5
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,31 @@ jobs:
!target/tmp
key: "${{ steps.restore-rust-build-cache.outputs.cache-primary-key }}"

tier3_cross:
strategy:
fail-fast: false
matrix:
include:
- container: redoxos/redoxer
target: x86_64-unknown-redox
runs-on: ubuntu-latest
container: ${{ matrix.container }}
steps:
- uses: actions/checkout@v4
- name: run test
if: startsWith(matrix.target, 'x86_64-unknown-redox')
run: |
export PATH=$PATH:/root/.redoxer/toolchain/bin
rustup default nightly
rustup target add ${{ matrix.target }}
cargo build --locked --target ${{ matrix.target }}
env:
RUST_BACKTRACE: 1
AR_x86_64_unknown_redox: "x86_64-unknown-redox-ar"
CC_x86_64_unknown_redox: "x86_64-unknown-redox-gcc"
CARGO_TARGET_X86_64_UNKNOWN_REDOX_LINKER: "x86_64-unknown-redox-gcc"
CARGO_TARGET_X86_64_UNKNOWN_REDOX_RUNNER: "redoxer exec --folder ."

tier3:
strategy:
fail-fast: false
Expand All @@ -72,7 +97,6 @@ jobs:
target:
- x86_64-pc-solaris
- x86_64-unknown-fuchsia
- x86_64-unknown-redox
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
Expand Down

0 comments on commit f3444c5

Please sign in to comment.