Merge pull request #39 from scharlton2/38-nodejs-16-actions-are-deprecated

Updated Node.js actions
This commit is contained in:
Charlton, Scott R 2024-02-29 11:55:56 -07:00 committed by GitHub
commit 12483c3d0c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2,11 +2,14 @@ name: CMake
on: on:
push: push:
pull_request: pull_request:
branches: [ master ] branches:
- master
schedule: schedule:
- cron: '15 14 4,11,18,25 * *' - cron: '15 14 4,11,18,25 * *'
workflow_dispatch: workflow_dispatch:
env: env:
@ -43,7 +46,7 @@ jobs:
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
- name: Install ninja valgrind (Linux) - name: Install ninja valgrind (Linux)
if: runner.os == 'Linux' if: runner.os == 'Linux'
@ -63,7 +66,7 @@ jobs:
run: ctest -S ctest.cmake -V --output-on-failure --timeout 900 run: ctest -S ctest.cmake -V --output-on-failure --timeout 900
- name: Upload results - name: Upload results
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
with: with:
name: ${{ matrix.os }}-test-results name: ${{ matrix.os }}-test-results
path: ${{ github.workspace }}/_ctest/Testing/ path: ${{ github.workspace }}/_ctest/Testing/
@ -74,14 +77,14 @@ jobs:
steps: steps:
- name: Checkout phreeqc3-HTMLversion - name: Checkout phreeqc3-HTMLversion
uses: actions/checkout@v3 uses: actions/checkout@v4
with: with:
repository: usgs-coupled-subtrees/phreeqc3-HTMLversion repository: usgs-coupled-subtrees/phreeqc3-HTMLversion
ref: master ref: master
- name: cache htmlhelp - name: cache htmlhelp
id: cache-htmlhelp id: cache-htmlhelp
uses: actions/cache@v3 uses: actions/cache@v4
with: with:
path: "C:/Program Files (x86)/HTML Help Workshop" path: "C:/Program Files (x86)/HTML Help Workshop"
key: ${{ runner.os }}-htmlhelp key: ${{ runner.os }}-htmlhelp
@ -125,7 +128,7 @@ jobs:
exit 1 exit 1
fi fi
- uses: actions/upload-artifact@v3 - uses: actions/upload-artifact@v4
with: with:
name: chm name: chm
path: ${{github.workspace}}/phreeqc3.chm path: ${{github.workspace}}/phreeqc3.chm
@ -148,7 +151,7 @@ jobs:
- {os: ubuntu-latest, r: 'oldrel-1'} - {os: ubuntu-latest, r: 'oldrel-1'}
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
- name: versioning - name: versioning
run: ./jenkins-dist.sh -v ${{ needs.init.outputs.VER }} -r ${{ needs.init.outputs.REL }} -d ${{ needs.init.outputs.DATE }} run: ./jenkins-dist.sh -v ${{ needs.init.outputs.VER }} -r ${{ needs.init.outputs.REL }} -d ${{ needs.init.outputs.DATE }}
@ -193,7 +196,7 @@ jobs:
ls -lR ls -lR
find -name "*.tar.gz" find -name "*.tar.gz"
- uses: actions/upload-artifact@v3 - uses: actions/upload-artifact@v4
if: matrix.config.os == 'ubuntu-latest' && matrix.config.r == 'release' if: matrix.config.os == 'ubuntu-latest' && matrix.config.r == 'release'
with: with:
name: cran name: cran
@ -204,7 +207,7 @@ jobs:
# needs: [init] # needs: [init]
# runs-on: ubuntu-latest # runs-on: ubuntu-latest
# steps: # steps:
# - uses: actions/checkout@v3 # - uses: actions/checkout@v4
# - uses: r-lib/actions/setup-r@v2 # - uses: r-lib/actions/setup-r@v2
# with: # with:
@ -228,7 +231,7 @@ jobs:
# - name: check # - name: check
# run: cd R && make VERSION=${{ needs.init.outputs.VER }} check_built # run: cd R && make VERSION=${{ needs.init.outputs.VER }} check_built
# - uses: actions/upload-artifact@v3 # - uses: actions/upload-artifact@v4
# with: # with:
# name: cran # name: cran
# path: ${{github.workspace}}/R/phreeqc_*.tar.gz # path: ${{github.workspace}}/R/phreeqc_*.tar.gz
@ -238,7 +241,7 @@ jobs:
# needs: [r-build] # needs: [r-build]
# runs-on: ubuntu-latest # runs-on: ubuntu-latest
# steps: # steps:
# - uses: actions/checkout@v3 # - uses: actions/checkout@v4
# - uses: actions/download-artifact@v3 # - uses: actions/download-artifact@v3
# with: # with:
@ -274,7 +277,7 @@ jobs:
# - name: run # - name: run
# run: cd R && R -d "valgrind --tool=memcheck --leak-check=full" --vanilla < valgrind.R 2>&1 | tee valgrind.full.out # run: cd R && R -d "valgrind --tool=memcheck --leak-check=full" --vanilla < valgrind.R 2>&1 | tee valgrind.full.out
# - uses: actions/upload-artifact@v3 # - uses: actions/upload-artifact@v4
# with: # with:
# name: valgrind # name: valgrind
# path: ${{github.workspace}}/R/valgrind.full.out # path: ${{github.workspace}}/R/valgrind.full.out
@ -284,7 +287,7 @@ jobs:
needs: [init, chm] needs: [init, chm]
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
- uses: actions/download-artifact@v3 - uses: actions/download-artifact@v3
with: with:
@ -400,17 +403,17 @@ jobs:
- name: copy - name: copy
run: cp doc/README IPhreeqc_ReadMe.txt run: cp doc/README IPhreeqc_ReadMe.txt
- uses: actions/upload-artifact@v3 - uses: actions/upload-artifact@v4
with: with:
name: readme name: readme
path: ${{github.workspace}}/IPhreeqc_ReadMe.txt path: ${{github.workspace}}/IPhreeqc_ReadMe.txt
- uses: actions/upload-artifact@v3 - uses: actions/upload-artifact@v4
with: with:
name: tarball name: tarball
path: ${{github.workspace}}/_build/*.tar.gz path: ${{github.workspace}}/_build/*.tar.gz
- uses: actions/upload-artifact@v3 - uses: actions/upload-artifact@v4
with: with:
name: zipball name: zipball
path: ${{github.workspace}}/_build/*.zip path: ${{github.workspace}}/_build/*.zip
@ -433,7 +436,7 @@ jobs:
# BUILD_CLR_LIBS: ON # BUILD_CLR_LIBS: ON
# steps: # steps:
# - uses: actions/checkout@v3 # - uses: actions/checkout@v4
# - name: Configure CMake # - name: Configure CMake
# # Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make. # # Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.