From a6e0684a9908cedfa30cd6a46d8c85b34e64d4b1 Mon Sep 17 00:00:00 2001 From: sorhawell Date: Fri, 8 Sep 2023 12:03:52 +0200 Subject: [PATCH] rename matrix , try fix runner.target envvar --- .github/workflows/release_cross_compiled.yaml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release_cross_compiled.yaml b/.github/workflows/release_cross_compiled.yaml index 9393b16b3..a04d9474b 100644 --- a/.github/workflows/release_cross_compiled.yaml +++ b/.github/workflows/release_cross_compiled.yaml @@ -22,7 +22,7 @@ jobs: build: runs-on: ${{ matrix.config.os }} - name: ${{ matrix.config.os }} (${{ matrix.config.r }}) + name: ${{ matrix.config.os }} (target - ${{ matrix.config.target }}) permissions: contents: write @@ -65,14 +65,16 @@ jobs: - name: cross compile run: | pwd - rustup target add "${{ runner.target }}" - rustup default "${{ runner.target }}" + rustup target add "$RUNNER_TARGET" + rustup default "$RUNNER_TARGET" cargo build --lib --profile release-optimized --manifest-path=./src/rust/Cargo.toml mv ./src/rust/target/release-optimized/libr_polars.a ./inst/ - echo "${{ runner.os }}" > .inst/target.txt + echo "$RUNNER_TARGET" > .inst/target.txt cat .inst/target.txt ls -l ls ./inst/ -l + env: + RUNNER_TARGET: "${{ matrix.config.target }}" shell: bash - name: build source (with object file)