From 640ce3db77b06e43d5c186fa7931d467a5437fb8 Mon Sep 17 00:00:00 2001 From: Scott K Logan Date: Mon, 12 Feb 2024 20:07:13 -0600 Subject: [PATCH] Update to latest GitHub Actions releases --- .github/workflows/ci.yaml | 18 +++++++++--------- .github/workflows/release.yaml | 6 +++--- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 130e7ca..bd0d5bb 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -30,16 +30,16 @@ jobs: steps: - name: Cache PCRE2 - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: ${{runner.workspace}}/build/pcre-prefix/src/pcre2-10.42.tar.gz key: pcre2-10.42 - name: Clone project - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Get snapshot ID id: get-snap-id shell: bash - run: echo "::set-output name=snap_id::git${{github.sha}}" | cut -c-38 + run: echo "snap_id=git${{github.sha}}" | cut -c-19 >> $GITHUB_OUTPUT - name: Create build environment shell: bash working-directory: ${{runner.workspace}} @@ -76,7 +76,7 @@ jobs: - name: Package project run: cmake --build ${{runner.workspace}}/build --config ${{matrix.build_type}} -j2 -t package - name: Upload package - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: OpenELP-${{runner.os}} path: ${{runner.workspace}}/build/_CPack_Packages/${{runner.os}}/ZIP/OpenELP-${{runner.os}}/* @@ -89,7 +89,7 @@ jobs: run: sudo apt-get install libclang-cpp9 libclang1-9 -y - name: Cache Doxygen id: cache-doxygen - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: ${{runner.workspace}}/doxygen key: doxygen-1.9.7 @@ -100,7 +100,7 @@ jobs: wget -O - https://www.doxygen.nl/files/doxygen-1.9.7.linux.bin.tar.gz | tar -xz mv doxygen-1.9.7 doxygen - name: Clone project - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Create build environment shell: bash working-directory: ${{runner.workspace}} @@ -122,7 +122,7 @@ jobs: - name: Build documentation run: cmake --build ${{runner.workspace}}/build -j2 -t doc - name: Upload documentation - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: OpenELP-HTML-Docs path: ${{runner.workspace}}/build/doc/html/* @@ -132,7 +132,7 @@ jobs: runs-on: ubuntu-20.04 steps: - name: Clone project - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Create build environment shell: bash working-directory: ${{runner.workspace}} @@ -155,7 +155,7 @@ jobs: env: CTEST_OUTPUT_ON_FAILURE: 1 - name: Upload coverage - uses: codecov/codecov-action@v1 + uses: codecov/codecov-action@v3 with: directory: ${{github.workspace}} gcov_args: -s ${{github.workspace}} diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 903eaac..9eb7679 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -12,12 +12,12 @@ jobs: steps: - name: Cache PCRE2 - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: ${{runner.workspace}}\build\pcre-prefix\src\pcre2-10.42.tar.gz key: pcre2-10.42 - name: Clone project - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Create build environment shell: bash working-directory: ${{runner.workspace}} @@ -44,7 +44,7 @@ jobs: - name: Package project run: cmake --build ${{runner.workspace}}\build --config Release -j2 -t package - name: Upload package - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: OpenELP-win64 path: ${{runner.workspace}}\build\OpenELP-*-win64.exe