Skip to content

Commit

Permalink
rename matrix , try fix runner.target envvar
Browse files Browse the repository at this point in the history
  • Loading branch information
sorhawell committed Sep 8, 2023
1 parent 0a03919 commit a6e0684
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/release_cross_compiled.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit a6e0684

Please sign in to comment.