Skip to content

Commit 30f5782

Browse files
committed
feat: impl attempt to upload binary for noble
1 parent cbc24e9 commit 30f5782

File tree

1 file changed

+36
-12
lines changed

1 file changed

+36
-12
lines changed

.github/workflows/test-release.yaml

Lines changed: 36 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010

1111
jobs:
1212
release:
13-
runs-on: ubuntu-latest
13+
runs-on: ubuntu-24.04
1414
permissions:
1515
contents: write
1616
pull-requests: write
@@ -37,7 +37,7 @@ jobs:
3737
echo "result=$OUTPUT" >> $GITHUB_OUTPUT
3838
echo $GITHUB_OUTPUT
3939
40-
- name: Run R Releaser
40+
- name: Run R Releaser build-src
4141
id: releaser
4242
uses: A2-ai/r-releaser/build-src@main
4343
with:
@@ -55,26 +55,50 @@ jobs:
5555
run: |
5656
echo ${{ steps.releaser.outputs.tarball_path }}
5757
echo ${{ steps.releaser.outputs.tarball_name }}
58-
- name: create PACKAGE db
58+
59+
- name: Run R Releaser build-bin
60+
id: releaser-bin
61+
uses: A2-ai/r-releaser/build-bin@build-binary
62+
with:
63+
library: ${{ steps.library.outputs.result }}
64+
src_tarball_path: ${{ steps.releaser.outputs.tarball_path }}
65+
66+
- name: echo output
5967
run: |
60-
mkdir -p /tmp/repo/src/contrib
61-
cp ${{steps.releaser.outputs.tarball_path}} /tmp/repo/src/contrib
62-
cd /tmp/repo/src/contrib
63-
Rscript -e 'tools::write_PACKAGES(validate = TRUE)'
68+
echo ${{ steps.releaser-bin.outputs.binary_path }}
69+
echo ${{ steps.releaser-bin.outputs.binary_name }}
70+
71+
# - name: create PACKAGE db
72+
# run: |
73+
# mkdir -p /tmp/repo/src/contrib
74+
# cp ${{steps.releaser.outputs.tarball_path}} /tmp/repo/src/contrib
75+
# cd /tmp/repo/src/contrib
76+
# Rscript -e 'tools::write_PACKAGES(validate = TRUE)'
6477

65-
- name: Upload binaries to release
78+
- name: Upload src tarball to release
6679
uses: svenstaro/upload-release-action@v2
6780
with:
6881
repo_token: ${{ secrets.GITHUB_TOKEN }}
6982
file: ${{ steps.releaser.outputs.tarball_path }}
70-
asset_name: src/contrib/${{ steps.releaser.outputs.tarball_name }}
83+
# asset_name: src/contrib/${{ steps.releaser.outputs.tarball_name }}
84+
asset_name: ${{ steps.releaser.outputs.tarball_name }}
85+
7186
tag: ${{ github.event.inputs.tag }}
7287
overwrite: true
88+
# - name: Upload binaries to release
89+
# uses: svenstaro/upload-release-action@v2
90+
# with:
91+
# repo_token: ${{ secrets.GITHUB_TOKEN }}
92+
# file: /tmp/repo/src/contrib/PACKAGES
93+
# asset_name: src/contrib/PACKAGES
94+
# tag: ${{ github.event.inputs.tag }}
95+
7396
- name: Upload binaries to release
7497
uses: svenstaro/upload-release-action@v2
7598
with:
7699
repo_token: ${{ secrets.GITHUB_TOKEN }}
77-
file: /tmp/repo/src/contrib/PACKAGES
78-
asset_name: src/contrib/PACKAGES
100+
file: ${{ steps.releaser-bin.outputs.binary_path }}
101+
asset_name: ${{ steps.releaser-bin.outputs.binary_name }}
79102
tag: ${{ github.event.inputs.tag }}
80-
overwrite: true
103+
overwrite: true
104+

0 commit comments

Comments
 (0)