Skip to content

Commit

Permalink
add other R versions
Browse files Browse the repository at this point in the history
  • Loading branch information
khusmann committed Oct 10, 2024
1 parent 7b20d4c commit 52ec759
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/release-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ jobs:
strategy:
matrix:
os: [windows-latest, macos-latest]
R-version: [4.0, 4.1, 4.2, 4.3]

steps:
- name: Checkout code
Expand All @@ -31,17 +32,17 @@ jobs:

- name: Get the name of the binary package (Windows)
if: runner.os == 'Windows'
run: mv $(ls *.zip) interlacer-${{ matrix.os }}.zip
run: mv $(ls *.zip) interlacer-${{ matrix.os }}-${{ matrix.R-version }}.zip

- name: Get the name of the binary package (macOS)
if: runner.os != 'Windows'
run: mv $(ls *.tgz) interlacer-${{ matrix.os }}.tgz
run: mv $(ls *.tgz) interlacer-${{ matrix.os }}-${{ matrix.R-version }}.tgz

# Temporary step for testing to upload the artifact
- name: Upload build artifact
uses: actions/upload-artifact@v3
with:
name: interlacer-${{ matrix.os }}
name: interlacer-${{ matrix.os }}-${{ matrix.R-version }}
path: |
*.tgz
*.zip
Expand All @@ -56,23 +57,23 @@ jobs:
- name: Download built assets
uses: actions/download-artifact@v3
with:
name: interlacer-${{ matrix.os }}
name: interlacer-${{ matrix.os }}-${{ matrix.R-version }}
path: ./dist/

- name: Upload assets to GitHub Release (Windows)
if: runner.os == 'Windows' && github.event_name == 'release'
uses: actions/upload-release-asset@v1
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./dist/interlacer-${{ matrix.os }}.zip
asset_name: "interlacer-${{ matrix.os }}.zip"
asset_path: ./dist/interlacer-${{ matrix.os }}-${{ matrix.R-version }}.zip
asset_name: "interlacer-${{ matrix.os }}-${{ matrix.R-version }}.zip"
asset_content_type: application/zip

- name: Upload assets to GitHub Release (macOS/Linux)
if: runner.os != 'Windows' && github.event_name == 'release'
uses: actions/upload-release-asset@v1
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./dist/interlacer-${{ matrix.os }}.tgz
asset_name: "interlacer-${{ matrix.os }}.tgz"
asset_path: ./dist/interlacer-${{ matrix.os }}-${{ matrix.R-version }}.tgz
asset_name: "interlacer-${{ matrix.os }}-${{ matrix.R-version }}.tgz"
asset_content_type: application/gzip

0 comments on commit 52ec759

Please sign in to comment.