Skip to content

Commit

Permalink
ci: test bin lib on arm64 linux
Browse files Browse the repository at this point in the history
  • Loading branch information
eitsupi committed Jan 19, 2025
1 parent 704b8de commit 4d5b425
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/release-lib.yml
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,8 @@ jobs:
include:
- os: macos-13
r: release
- os: ubuntu-22.04-arm
r: release

permissions:
contents: read
Expand All @@ -145,7 +147,7 @@ jobs:
if [[ "${{ runner.os }}" == "Windows" ]]; then
echo "LIB_TARGET=x86_64-pc-windows-gnu" >>"$GITHUB_ENV"
elif [[ "${{ runner.os }}" == "Linux" ]]; then
echo "LIB_TARGET=x86_64-unknown-linux-musl" >>"$GITHUB_ENV"
echo "LIB_TARGET=$(uname -m)-unknown-linux-musl" >>"$GITHUB_ENV"
else
echo "LIB_TARGET=$(rustc -vV | grep host | cut -d' ' -f2)" >>"$GITHUB_ENV"
fi
Expand All @@ -171,9 +173,15 @@ jobs:
Ncpus: "2"

- uses: r-lib/actions/setup-r-dependencies@v2
# TODO: remove after this action supports arm linux <https://github.com/r-lib/actions/issues/960>
if: matrix.os != 'ubuntu-22.04-arm'
with:
extra-packages: any::pkgload, any::testthat

- run: |
Rscript -e 'install.packages(c("pkgload", "testthat"))'
if: matrix.os == 'ubuntu-22.04-arm'
- name: R test
shell: Rscript {0}
run: |
Expand Down

0 comments on commit 4d5b425

Please sign in to comment.