Skip to content

Commit

Permalink
add binary build
Browse files Browse the repository at this point in the history
  • Loading branch information
yannrichet-irsn authored Dec 6, 2023
1 parent 3573472 commit ccf79db
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: R-CMD-INSTALL-build

on:
push:
pull_request:

jobs:
release:
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest, windows-latest, macOS-latest ]
R: [ '4.3' ]

runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v2
with:
submodules: recursive

- uses: r-lib/actions/setup-r@v2
with:
r-version: ${{ matrix.R }}
rtools-version: '43'

- uses: r-lib/actions/setup-r-dependencies@v2

- run: |
cd ..; R CMD INSTALL --build SeaLev
mkdir SeaLev/R-${{ matrix.R }}
mv SeaLev_*.* SeaLev/R-${{ matrix.R }}/.
shell: bash
name: R CMD INSTALL
- uses: actions/upload-artifact@v2
with:
path: ./R-*

- uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
./R-*/*.tar.gz
./R-*/*.tgz
./R-*/*.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit ccf79db

Please sign in to comment.