From 17368afb34430701d0a513796c880052f9edef40 Mon Sep 17 00:00:00 2001 From: Tuomas Koskela Date: Wed, 2 Nov 2022 11:44:16 +0000 Subject: [PATCH 1/6] Change save-output to >> $GITHUB_OUTPUT details in https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/ --- .github/workflows/cmake.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index 01e3d2fa4..dc0ffb69d 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -86,7 +86,7 @@ jobs: shell: cmake -P {0} run: | string(TIMESTAMP current_date "%Y-%m-%d-%H;%M;%S" UTC) - message("::set-output name=timestamp::${current_date}") + echo "name=timestamp::${current_date}" >> $GITHUB_OUTPUT - name: Set ccache cache directory shell: bash run: echo "CCACHE_DIR=${{runner.workspace}}/.ccache" >> "${GITHUB_ENV}" From 56a0c746c34da4f75c61b2f711b935eb919f9be0 Mon Sep 17 00:00:00 2001 From: Tuomas Koskela Date: Wed, 2 Nov 2022 13:35:26 +0000 Subject: [PATCH 2/6] Update checkout action to c13 for node.js 16 --- .github/workflows/cmake.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index dc0ffb69d..a7a90d24d 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -61,7 +61,7 @@ jobs: mpi: "on" steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 # Enable tmate debugging of manually-triggered workflows if the input option was provided - name: Setup tmate session From 1172f1b24819baf1dfc31fff4fa95d6738212854 Mon Sep 17 00:00:00 2001 From: Tuomas Koskela Date: Wed, 2 Nov 2022 13:49:11 +0000 Subject: [PATCH 3/6] Fix syntax error --- .github/workflows/cmake.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index a7a90d24d..1c98dcd93 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -58,7 +58,8 @@ jobs: cc: clang cxx: clang++ - os: macos-11 - mpi: "on" + - mpi: "on" + - omp: "on" steps: - uses: actions/checkout@v3 @@ -86,7 +87,7 @@ jobs: shell: cmake -P {0} run: | string(TIMESTAMP current_date "%Y-%m-%d-%H;%M;%S" UTC) - echo "name=timestamp::${current_date}" >> $GITHUB_OUTPUT + echo "{name}={timestamp::${current_date}}" >> $GITHUB_OUTPUT - name: Set ccache cache directory shell: bash run: echo "CCACHE_DIR=${{runner.workspace}}/.ccache" >> "${GITHUB_ENV}" From 6e548331281254d622af74dfa6bdb962cd7357c9 Mon Sep 17 00:00:00 2001 From: Tuomas Koskela Date: Wed, 23 Nov 2022 15:59:56 +0000 Subject: [PATCH 4/6] Remove extra {}s --- .github/workflows/cmake.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index 1c98dcd93..d0b31eb94 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -87,7 +87,7 @@ jobs: shell: cmake -P {0} run: | string(TIMESTAMP current_date "%Y-%m-%d-%H;%M;%S" UTC) - echo "{name}={timestamp::${current_date}}" >> $GITHUB_OUTPUT + echo "name=timestamp::${current_date}" >> $GITHUB_OUTPUT - name: Set ccache cache directory shell: bash run: echo "CCACHE_DIR=${{runner.workspace}}/.ccache" >> "${GITHUB_ENV}" From fa8c47cf7f87b3d11c2d7aacad66461f6aecd13c Mon Sep 17 00:00:00 2001 From: Tuomas Koskela Date: Wed, 23 Nov 2022 16:13:50 +0000 Subject: [PATCH 5/6] Debugging --- .github/workflows/cmake.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index 48f72ad9f..6812a27a1 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -98,18 +98,15 @@ jobs: - name: Prepare ccache timestamp id: ccache_cache_timestamp - shell: cmake -P {0} - run: | - string(TIMESTAMP current_date "%Y-%m-%d-%H;%M;%S" UTC) - echo "name=timestamp::${current_date}" >> $GITHUB_OUTPUT + run: echo "{date_and_time}={$(date +'%Y-%m-%d-%H;%M;%S')}" >> $GITHUB_OUTPUT - name: Set ccache cache directory shell: bash run: echo "CCACHE_DIR=${{runner.workspace}}/.ccache" >> "${GITHUB_ENV}" - name: Cache ccache files - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: ${{runner.workspace}}/.ccache - key: ${{matrix.os}}-${{matrix.cxx}}-${{matrix.mpi}}-${{matrix.omp}}-${{ steps.ccache_cache_timestamp.outputs.timestamp }} + key: ${{matrix.os}}-${{matrix.cxx}}-${{matrix.mpi}}-${{matrix.omp}}-${{ steps.ccache_cache_timestamp.outputs.date_and_time }} restore-keys: | ${{ matrix.os }}-${{ matrix.cxx }}-${{ matrix.mpi }}-${{ matrix.omp }} ${{ matrix.os }}-${{ matrix.cxx }}-${{ matrix.mpi }} From 8bb2e8442de37d6fdbcaabd3254b7d6df28f7b75 Mon Sep 17 00:00:00 2001 From: Tuomas Koskela Date: Wed, 23 Nov 2022 16:19:15 +0000 Subject: [PATCH 6/6] Restore full workflow --- .github/workflows/cmake.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index 6812a27a1..b33ed6de5 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -58,8 +58,7 @@ jobs: cc: clang cxx: clang++ - os: macos-11 - - mpi: "on" - - omp: "on" + mpi: "on" steps: - uses: actions/checkout@v3