Skip to content

Commit 704b8de

Browse files
authored
ci: fix release binary library workflow with using the latest runners (#333)
1 parent 8df4c32 commit 704b8de

File tree

1 file changed

+6
-15
lines changed

1 file changed

+6
-15
lines changed

.github/workflows/release-lib.yml

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ jobs:
3232
fail-fast: false
3333
matrix:
3434
include:
35-
- os: ubuntu-latest
35+
- os: ubuntu-22.04
3636
target: x86_64-unknown-linux-musl
37-
- os: ubuntu-latest
37+
- os: ubuntu-22.04-arm
3838
target: aarch64-unknown-linux-musl
3939
- os: macos-latest
4040
target: x86_64-apple-darwin
@@ -70,14 +70,6 @@ jobs:
7070
sudo apt-get update
7171
sudo apt-get install -y musl-tools
7272
73-
- name: prep for arm64 Linux
74-
if: matrix.target == 'aarch64-unknown-linux-musl'
75-
run: |
76-
sudo apt-get update
77-
sudo apt-get install -y gcc-aarch64-linux-gnu
78-
echo 'CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER=aarch64-linux-gnu-gcc' >>"$GITHUB_ENV"
79-
echo 'CC=aarch64-linux-gnu-gcc' >>"$GITHUB_ENV"
80-
8173
- name: Set up R
8274
if: runner.os != 'Windows'
8375
uses: r-lib/actions/setup-r@v2
@@ -136,7 +128,7 @@ jobs:
136128
- os: macos-latest
137129
r: oldrel-1
138130
include:
139-
- os: macos-12
131+
- os: macos-13
140132
r: release
141133

142134
permissions:
@@ -180,14 +172,13 @@ jobs:
180172

181173
- uses: r-lib/actions/setup-r-dependencies@v2
182174
with:
183-
extra-packages: any::rcmdcheck, any::devtools
184-
needs: check
175+
extra-packages: any::pkgload, any::testthat
185176

186177
- name: R test
187178
shell: Rscript {0}
188179
run: |
189-
devtools::load_all()
190-
testthat::test_dir("tests")
180+
pkgload::load_all()
181+
testthat::test_local()
191182
192183
release:
193184
needs:

0 commit comments

Comments
 (0)