add binary build #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 smint | |
mkdir smint/R-${{ matrix.R }} | |
mv smint_*.* smint/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 }} |