added r-build section

This commit is contained in:
Charlton, Scott R 2021-09-22 11:31:45 -06:00
parent 149da2ea0a
commit f26d85b82b

View File

@ -106,6 +106,33 @@ jobs:
# echo REL=${{ needs.init.outputs.REL }} # echo REL=${{ needs.init.outputs.REL }}
# echo DATE=${{ needs.init.outputs.DATE }} # echo DATE=${{ needs.init.outputs.DATE }}
r-build:
needs: [init]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: r-lib/actions/setup-r@v1
with:
use-public-rspm: true
- name: versioning
run: ./jenkins-dist.sh -v ${{ needs.init.outputs.VER }} -r ${{ needs.init.outputs.REL }} -d ${{ needs.init.outputs.DATE }}
- name: R
run: |
cd R
mkdir -p phreeqc/man
mkdir -p phreeqc/src/phreeqcpp
mkdir -p phreeqc/R
mkdir -p phreeqc/data
echo "# Generated by roxygen2: do not edit by hand" > phreeqc/NAMESPACE
make VERSION=${{ needs.init.outputs.VER }} RELEASE_DATE=${{ needs.init.outputs.DATE }} build
- uses: actions/upload-artifact@v2
with:
name: cran
path: ${{github.workspace}}/R/phreeqc_*.tar.gz
distcheck: distcheck:
needs: [init, chm] needs: [init, chm]