Skip to content

Commit

Permalink
#291: CI: use GITHUB_ENV for BUILD_ROOT
Browse files Browse the repository at this point in the history
  • Loading branch information
cz4rs committed Mar 21, 2023
1 parent 5f5d78c commit af8cb7d
Show file tree
Hide file tree
Showing 12 changed files with 24 additions and 36 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/dockerimage-clang-10-ubuntu-mpich.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,8 @@ jobs:

steps:
- name: Setup Build Root
uses: allenevans/[email protected]
with:
BUILD_ROOT: "~/.local/cache/${{ env.ARCH }}-ubuntu-${{ env.UBUNTU }}-${{ env.COMPILER }}-cache/"
run: |
echo "BUILD_ROOT=~/.local/cache/${{ env.ARCH }}-ubuntu-${{ env.UBUNTU }}-${{ env.COMPILER }}-cache/" >> $GITHUB_ENV
- name: Prepare caching timestamp
shell: cmake -P {0}
run: |
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/dockerimage-clang-11-ubuntu-mpich.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,8 @@ jobs:

steps:
- name: Setup Build Root
uses: allenevans/[email protected]
with:
BUILD_ROOT: "~/.local/cache/${{ env.ARCH }}-ubuntu-${{ env.UBUNTU }}-${{ env.COMPILER }}-cache/"
run: |
echo "BUILD_ROOT=~/.local/cache/${{ env.ARCH }}-ubuntu-${{ env.UBUNTU }}-${{ env.COMPILER }}-cache/" >> $GITHUB_ENV
- name: Prepare caching timestamp
shell: cmake -P {0}
run: |
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/dockerimage-clang-12-ubuntu-mpich.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,8 @@ jobs:

steps:
- name: Setup Build Root
uses: allenevans/[email protected]
with:
BUILD_ROOT: "~/.local/cache/${{ env.ARCH }}-ubuntu-${{ env.UBUNTU }}-${{ env.COMPILER }}-cache/"
run: |
echo "BUILD_ROOT=~/.local/cache/${{ env.ARCH }}-ubuntu-${{ env.UBUNTU }}-${{ env.COMPILER }}-cache/" >> $GITHUB_ENV
- name: Prepare caching timestamp
shell: cmake -P {0}
run: |
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/dockerimage-clang-13-ubuntu-mpich.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,8 @@ jobs:

steps:
- name: Setup Build Root
uses: allenevans/[email protected]
with:
BUILD_ROOT: "~/.local/cache/${{ env.ARCH }}-ubuntu-${{ env.UBUNTU }}-${{ env.COMPILER }}-cache/"
run: |
echo "BUILD_ROOT=~/.local/cache/${{ env.ARCH }}-ubuntu-${{ env.UBUNTU }}-${{ env.COMPILER }}-cache/" >> $GITHUB_ENV
- name: Prepare caching timestamp
shell: cmake -P {0}
run: |
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/dockerimage-clang-14-ubuntu-mpich.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,8 @@ jobs:

steps:
- name: Setup Build Root
uses: allenevans/[email protected]
with:
BUILD_ROOT: "~/.local/cache/${{ env.ARCH }}-ubuntu-${{ env.UBUNTU }}-${{ env.COMPILER }}-cache/"
run: |
echo "BUILD_ROOT=~/.local/cache/${{ env.ARCH }}-ubuntu-${{ env.UBUNTU }}-${{ env.COMPILER }}-cache/" >> $GITHUB_ENV
- name: Prepare caching timestamp
shell: cmake -P {0}
run: |
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/dockerimage-clang-8-ubuntu-mpich.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,8 @@ jobs:

steps:
- name: Setup Build Root
uses: allenevans/[email protected]
with:
BUILD_ROOT: "~/.local/cache/${{ env.ARCH }}-ubuntu-${{ env.UBUNTU }}-${{ env.COMPILER }}-cache/"
run: |
echo "BUILD_ROOT=~/.local/cache/${{ env.ARCH }}-ubuntu-${{ env.UBUNTU }}-${{ env.COMPILER }}-cache/" >> $GITHUB_ENV
- name: Prepare caching timestamp
shell: cmake -P {0}
run: |
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/dockerimage-clang-9-ubuntu-mpich.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,8 @@ jobs:

steps:
- name: Setup Build Root
uses: allenevans/[email protected]
with:
BUILD_ROOT: "~/.local/cache/${{ env.ARCH }}-ubuntu-${{ env.UBUNTU }}-${{ env.COMPILER }}-cache/"
run: |
echo "BUILD_ROOT=~/.local/cache/${{ env.ARCH }}-ubuntu-${{ env.UBUNTU }}-${{ env.COMPILER }}-cache/" >> $GITHUB_ENV
- name: Prepare caching timestamp
shell: cmake -P {0}
run: |
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/dockerimage-gcc-10-ubuntu-mpich.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,8 @@ jobs:

steps:
- name: Setup Build Root
uses: allenevans/[email protected]
with:
BUILD_ROOT: "~/.local/cache/${{ env.ARCH }}-ubuntu-${{ env.UBUNTU }}-${{ env.COMPILER }}-cache/"
run: |
echo "BUILD_ROOT=~/.local/cache/${{ env.ARCH }}-ubuntu-${{ env.UBUNTU }}-${{ env.COMPILER }}-cache/" >> $GITHUB_ENV
- name: Prepare caching timestamp
shell: cmake -P {0}
run: |
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/dockerimage-gcc-8-ubuntu-mpich.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,8 @@ jobs:

steps:
- name: Setup Build Root
uses: allenevans/[email protected]
with:
BUILD_ROOT: "~/.local/cache/${{ env.ARCH }}-ubuntu-${{ env.UBUNTU }}-${{ env.COMPILER }}-cache/"
run: |
echo "BUILD_ROOT=~/.local/cache/${{ env.ARCH }}-ubuntu-${{ env.UBUNTU }}-${{ env.COMPILER }}-cache/" >> $GITHUB_ENV
- name: Prepare caching timestamp
shell: cmake -P {0}
run: |
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/dockerimage-gcc-9-ubuntu-mpich.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,8 @@ jobs:

steps:
- name: Setup Build Root
uses: allenevans/[email protected]
with:
BUILD_ROOT: "~/.local/cache/${{ env.ARCH }}-ubuntu-${{ env.UBUNTU }}-${{ env.COMPILER }}-cache/"
run: |
echo "BUILD_ROOT=~/.local/cache/${{ env.ARCH }}-ubuntu-${{ env.UBUNTU }}-${{ env.COMPILER }}-cache/" >> $GITHUB_ENV
- name: Prepare caching timestamp
shell: cmake -P {0}
run: |
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/dockerimage-nvcc-11-ubuntu-mpich.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,8 @@ jobs:

steps:
- name: Setup Build Root
uses: allenevans/[email protected]
with:
BUILD_ROOT: "~/.local/cache/${{ env.ARCH }}-ubuntu-${{ env.UBUNTU }}-${{ env.COMPILER }}-cache/"
run: |
echo "BUILD_ROOT=~/.local/cache/${{ env.ARCH }}-ubuntu-${{ env.UBUNTU }}-${{ env.COMPILER }}-cache/" >> $GITHUB_ENV
- name: Prepare caching timestamp
shell: cmake -P {0}
run: |
Expand Down
5 changes: 2 additions & 3 deletions scripts/workflow-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,8 @@ jobs:

steps:
- name: Setup Build Root
uses: allenevans/[email protected]
with:
BUILD_ROOT: "[% build_root %]"
run: |
echo "BUILD_ROOT=[% build_root %]" >> $GITHUB_ENV
- name: Prepare caching timestamp
shell: cmake -P {0}
run: |
Expand Down

0 comments on commit af8cb7d

Please sign in to comment.