Update actions/checkout and actions/cache

This commit is contained in:
bjorn3 2024-01-26 11:06:55 +00:00
parent 7d3b29399d
commit 1fba58ed94
4 changed files with 16 additions and 16 deletions

View File

@ -33,14 +33,14 @@ jobs:
TARGET_TRIPLE: x86_64-pc-windows-gnu TARGET_TRIPLE: x86_64-pc-windows-gnu
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
- name: CPU features - name: CPU features
if: matrix.os == 'ubuntu-latest' if: matrix.os == 'ubuntu-latest'
run: cat /proc/cpuinfo run: cat /proc/cpuinfo
- name: Cache cargo target dir - name: Cache cargo target dir
uses: actions/cache@v3 uses: actions/cache@v4
with: with:
path: build/cg_clif path: build/cg_clif
key: ${{ runner.os }}-${{ matrix.env.TARGET_TRIPLE }}-cargo-build-target-${{ hashFiles('rust-toolchain', '**/Cargo.lock') }} key: ${{ runner.os }}-${{ matrix.env.TARGET_TRIPLE }}-cargo-build-target-${{ hashFiles('rust-toolchain', '**/Cargo.lock') }}

View File

@ -10,7 +10,7 @@ jobs:
audit: audit:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
- run: | - run: |
sed -i 's/components.*/components = []/' rust-toolchain sed -i 's/components.*/components = []/' rust-toolchain
echo 'profile = "minimal"' >> rust-toolchain echo 'profile = "minimal"' >> rust-toolchain

View File

@ -10,7 +10,7 @@ jobs:
timeout-minutes: 10 timeout-minutes: 10
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
- name: Avoid installing rustc-dev - name: Avoid installing rustc-dev
run: | run: |
@ -64,14 +64,14 @@ jobs:
TARGET_TRIPLE: x86_64-pc-windows-gnu TARGET_TRIPLE: x86_64-pc-windows-gnu
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
- name: CPU features - name: CPU features
if: matrix.os == 'ubuntu-latest' if: matrix.os == 'ubuntu-latest'
run: cat /proc/cpuinfo run: cat /proc/cpuinfo
- name: Cache cargo target dir - name: Cache cargo target dir
uses: actions/cache@v3 uses: actions/cache@v4
with: with:
path: build/cg_clif path: build/cg_clif
key: ${{ runner.os }}-${{ matrix.env.TARGET_TRIPLE }}-cargo-build-target-${{ hashFiles('rust-toolchain', '**/Cargo.lock') }} key: ${{ runner.os }}-${{ matrix.env.TARGET_TRIPLE }}-cargo-build-target-${{ hashFiles('rust-toolchain', '**/Cargo.lock') }}
@ -138,7 +138,7 @@ jobs:
shell: bash shell: bash
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
- name: CPU features - name: CPU features
run: cat /proc/cpuinfo run: cat /proc/cpuinfo
@ -164,13 +164,13 @@ jobs:
shell: bash shell: bash
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
- name: CPU features - name: CPU features
run: cat /proc/cpuinfo run: cat /proc/cpuinfo
- name: Cache cargo target dir - name: Cache cargo target dir
uses: actions/cache@v3 uses: actions/cache@v4
with: with:
path: build/cg_clif path: build/cg_clif
key: ${{ runner.os }}-x86_64-unknown-linux-gnu-cargo-build-target-${{ hashFiles('rust-toolchain', '**/Cargo.lock') }} key: ${{ runner.os }}-x86_64-unknown-linux-gnu-cargo-build-target-${{ hashFiles('rust-toolchain', '**/Cargo.lock') }}
@ -221,10 +221,10 @@ jobs:
TARGET_TRIPLE: x86_64-pc-windows-gnu TARGET_TRIPLE: x86_64-pc-windows-gnu
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
- name: Cache cargo target dir - name: Cache cargo target dir
uses: actions/cache@v3 uses: actions/cache@v4
with: with:
path: build/cg_clif path: build/cg_clif
key: ${{ runner.os }}-${{ matrix.env.TARGET_TRIPLE }}-dist-cargo-build-target-${{ hashFiles('rust-toolchain', '**/Cargo.lock') }} key: ${{ runner.os }}-${{ matrix.env.TARGET_TRIPLE }}-dist-cargo-build-target-${{ hashFiles('rust-toolchain', '**/Cargo.lock') }}
@ -276,7 +276,7 @@ jobs:
cancel-in-progress: true cancel-in-progress: true
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
- name: Download all built artifacts - name: Download all built artifacts
uses: actions/download-artifact@v4 uses: actions/download-artifact@v4

View File

@ -9,13 +9,13 @@ jobs:
timeout-minutes: 60 timeout-minutes: 60
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
- name: CPU features - name: CPU features
run: cat /proc/cpuinfo run: cat /proc/cpuinfo
- name: Cache cargo target dir - name: Cache cargo target dir
uses: actions/cache@v3 uses: actions/cache@v4
with: with:
path: build/cg_clif path: build/cg_clif
key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('rust-toolchain', '**/Cargo.lock') }} key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('rust-toolchain', '**/Cargo.lock') }}
@ -32,13 +32,13 @@ jobs:
timeout-minutes: 60 timeout-minutes: 60
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
- name: CPU features - name: CPU features
run: cat /proc/cpuinfo run: cat /proc/cpuinfo
- name: Cache cargo target dir - name: Cache cargo target dir
uses: actions/cache@v3 uses: actions/cache@v4
with: with:
path: build/cg_clif path: build/cg_clif
key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('rust-toolchain', '**/Cargo.lock') }} key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('rust-toolchain', '**/Cargo.lock') }}