Skip to content

Commit

Permalink
fix: fix workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
yoctoyotta1024 committed Oct 30, 2024
1 parent 39c4085 commit 00b0a21
Showing 1 changed file with 18 additions and 24 deletions.
42 changes: 18 additions & 24 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,10 @@ jobs:
make install
- name: Cache YAXT
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ${{ runner.temp }}/yaxt/
key: ${{ runner.os }}-yaxt-${{ hashFiles('${{ runner.temp }}/yaxt/**') }}
restore-keys: |
${{ runner.os }}-yaxt-
key: yaxt-cache

- name: Build YAC
run: |
Expand All @@ -42,12 +40,10 @@ jobs:
make install
- name: Cache YAC
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ${{ runner.temp }}/yac/
key: ${{ runner.os }}-yac-${{ hashFiles('${{ runner.temp }}/yac/**') }}
restore-keys: |
${{ runner.os }}-yac-
key: yac-cache

- name: Build main
run: |
Expand All @@ -63,12 +59,10 @@ jobs:
-DCMAKE_MODULE_PATH=${PWD}/libs/coupldyn_yac/cmake
- name: Cache CLEO Build
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ${PWD}/build
key: ${{ runner.os }}-build-${{ hashFiles('${PWD}/build') }}
restore-keys: |
${{ runner.os }}-build-
key: cleo-build-cache

compile:
runs-on: ubuntu-latest
Expand All @@ -77,22 +71,22 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Download CLEO Build
uses: actions/download-artifact@v4
- name: Retrieve CLEO Build
uses: actions/cache@v4
with:
name: cleo-build-artifact
name: cleo-build-cache
path: ./build/

- name: Download YAXT
uses: actions/download-artifact@v4
- name: Retrieve YAXT
uses: actions/cache@v4
with:
name: yaxt-artifact
name: yaxt-cache
path: ${{ runner.temp }}/yaxt/

- name: Download YAC
uses: actions/download-artifact@v4
- name: Retrieve YAC
uses: actions/cache@v4
with:
name: yac-artifact
name: yac-cache
path: ${{ runner.temp }}/yac/

- name: Build main
Expand All @@ -105,10 +99,10 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Download CLEO Build
uses: actions/download-artifact@v4
- name: Retrieve CLEO Build
uses: actions/cache@v4
with:
name: cleo-build-artifact
name: cleo-build-cache
path: ./build/

- name: Build adia0d
Expand Down

0 comments on commit 00b0a21

Please sign in to comment.