bump actions artifact upload/download and cache versions (#3901)

Signed-off-by: Avi Deitcher <avi@deitcher.net>

Signed-off-by: Avi Deitcher <avi@deitcher.net>
This commit is contained in:
Avi Deitcher 2023-01-22 14:08:25 +02:00 committed by GitHub
parent 6d95833759
commit 7bba32e56c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 19 additions and 19 deletions

View File

@ -79,7 +79,7 @@ jobs:
GOPATH: ${{runner.workspace}} GOPATH: ${{runner.workspace}}
- name: Upload binary - name: Upload binary
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v3
with: with:
name: linuxkit-${{matrix.target.suffix}} name: linuxkit-${{matrix.target.suffix}}
path: | path: |
@ -100,7 +100,7 @@ jobs:
run: docker run --privileged --rm tonistiigi/binfmt --install arm64 run: docker run --privileged --rm tonistiigi/binfmt --install arm64
- name: Download linuxkit - name: Download linuxkit
uses: actions/download-artifact@v2 uses: actions/download-artifact@v3
with: with:
name: linuxkit-amd64-linux name: linuxkit-amd64-linux
path: bin path: bin
@ -112,7 +112,7 @@ jobs:
/usr/local/bin/linuxkit version /usr/local/bin/linuxkit version
- name: Cache Packages - name: Cache Packages
uses: actions/cache@v2 uses: actions/cache@v3
with: with:
path: ~/.linuxkit/cache/ path: ~/.linuxkit/cache/
key: ${{ runner.os }}-linuxkit-${{ github.sha }} key: ${{ runner.os }}-linuxkit-${{ github.sha }}
@ -149,7 +149,7 @@ jobs:
- name: Restore RTF From Cache - name: Restore RTF From Cache
id: cache-rtf id: cache-rtf
uses: actions/cache@v2 uses: actions/cache@v3
with: with:
path: bin path: bin
key: rtf-${{hashFiles('Makefile')}} key: rtf-${{hashFiles('Makefile')}}
@ -163,7 +163,7 @@ jobs:
sudo ln -s $(pwd)/bin/rtf /usr/local/bin/rtf sudo ln -s $(pwd)/bin/rtf /usr/local/bin/rtf
- name: Download linuxkit - name: Download linuxkit
uses: actions/download-artifact@v2 uses: actions/download-artifact@v3
with: with:
name: linuxkit-amd64-linux name: linuxkit-amd64-linux
path: bin path: bin
@ -175,7 +175,7 @@ jobs:
/usr/local/bin/linuxkit version /usr/local/bin/linuxkit version
- name: Restore Package Cache - name: Restore Package Cache
uses: actions/cache@v2 uses: actions/cache@v3
with: with:
path: ~/.linuxkit/cache/ path: ~/.linuxkit/cache/
key: ${{ runner.os }}-linuxkit-${{ github.sha }} key: ${{ runner.os }}-linuxkit-${{ github.sha }}
@ -201,7 +201,7 @@ jobs:
- name: Restore RTF From Cache - name: Restore RTF From Cache
id: cache-rtf id: cache-rtf
uses: actions/cache@v2 uses: actions/cache@v3
with: with:
path: bin path: bin
key: rtf-${{hashFiles('Makefile')}} key: rtf-${{hashFiles('Makefile')}}
@ -215,7 +215,7 @@ jobs:
sudo ln -s $(pwd)/bin/rtf /usr/local/bin/rtf sudo ln -s $(pwd)/bin/rtf /usr/local/bin/rtf
- name: Download linuxkit - name: Download linuxkit
uses: actions/download-artifact@v2 uses: actions/download-artifact@v3
with: with:
name: linuxkit-amd64-linux name: linuxkit-amd64-linux
path: bin path: bin
@ -227,7 +227,7 @@ jobs:
/usr/local/bin/linuxkit version /usr/local/bin/linuxkit version
- name: Restore Package Cache - name: Restore Package Cache
uses: actions/cache@v2 uses: actions/cache@v3
with: with:
path: ~/.linuxkit/cache/ path: ~/.linuxkit/cache/
key: ${{ runner.os }}-linuxkit-${{ github.sha }} key: ${{ runner.os }}-linuxkit-${{ github.sha }}
@ -253,13 +253,13 @@ jobs:
- name: Restore RTF From Cache - name: Restore RTF From Cache
id: cache-rtf id: cache-rtf
uses: actions/cache@v2 uses: actions/cache@v3
with: with:
path: bin path: bin
key: rtf-${{hashFiles('Makefile')}} key: rtf-${{hashFiles('Makefile')}}
- name: Restore Package Cache - name: Restore Package Cache
uses: actions/cache@v2 uses: actions/cache@v3
with: with:
path: ~/.linuxkit/cache/ path: ~/.linuxkit/cache/
key: ${{ runner.os }}-linuxkit-${{ github.sha }} key: ${{ runner.os }}-linuxkit-${{ github.sha }}
@ -275,7 +275,7 @@ jobs:
sudo ln -s $(pwd)/bin/rtf /usr/local/bin/rtf sudo ln -s $(pwd)/bin/rtf /usr/local/bin/rtf
- name: Download linuxkit - name: Download linuxkit
uses: actions/download-artifact@v2 uses: actions/download-artifact@v3
with: with:
name: linuxkit-amd64-linux name: linuxkit-amd64-linux
path: bin path: bin
@ -305,7 +305,7 @@ jobs:
- name: Restore RTF From Cache - name: Restore RTF From Cache
id: cache-rtf id: cache-rtf
uses: actions/cache@v2 uses: actions/cache@v3
with: with:
path: bin path: bin
key: rtf-${{hashFiles('Makefile')}} key: rtf-${{hashFiles('Makefile')}}
@ -319,7 +319,7 @@ jobs:
sudo ln -s $(pwd)/bin/rtf /usr/local/bin/rtf sudo ln -s $(pwd)/bin/rtf /usr/local/bin/rtf
- name: Download linuxkit - name: Download linuxkit
uses: actions/download-artifact@v2 uses: actions/download-artifact@v3
with: with:
name: linuxkit-amd64-linux name: linuxkit-amd64-linux
path: bin path: bin
@ -331,7 +331,7 @@ jobs:
/usr/local/bin/linuxkit version /usr/local/bin/linuxkit version
- name: Restore Package Cache - name: Restore Package Cache
uses: actions/cache@v2 uses: actions/cache@v3
with: with:
path: ~/.linuxkit/cache/ path: ~/.linuxkit/cache/
key: ${{ runner.os }}-linuxkit-${{ github.sha }} key: ${{ runner.os }}-linuxkit-${{ github.sha }}
@ -357,7 +357,7 @@ jobs:
- name: Restore RTF From Cache - name: Restore RTF From Cache
id: cache-rtf id: cache-rtf
uses: actions/cache@v2 uses: actions/cache@v3
with: with:
path: bin path: bin
key: rtf-${{hashFiles('Makefile')}} key: rtf-${{hashFiles('Makefile')}}
@ -371,7 +371,7 @@ jobs:
sudo ln -s $(pwd)/bin/rtf /usr/local/bin/rtf sudo ln -s $(pwd)/bin/rtf /usr/local/bin/rtf
- name: Download linuxkit - name: Download linuxkit
uses: actions/download-artifact@v2 uses: actions/download-artifact@v3
with: with:
name: linuxkit-amd64-linux name: linuxkit-amd64-linux
path: bin path: bin
@ -383,7 +383,7 @@ jobs:
/usr/local/bin/linuxkit version /usr/local/bin/linuxkit version
- name: Restore Package Cache - name: Restore Package Cache
uses: actions/cache@v2 uses: actions/cache@v3
with: with:
path: ~/.linuxkit/cache/ path: ~/.linuxkit/cache/
key: ${{ runner.os }}-linuxkit-${{ github.sha }} key: ${{ runner.os }}-linuxkit-${{ github.sha }}

View File

@ -45,7 +45,7 @@ jobs:
sudo ln -s $(pwd)/bin/${{ env.linuxkit_file }} /usr/local/bin/linuxkit sudo ln -s $(pwd)/bin/${{ env.linuxkit_file }} /usr/local/bin/linuxkit
/usr/local/bin/linuxkit version /usr/local/bin/linuxkit version
- name: Restore Package Cache - name: Restore Package Cache
uses: actions/cache@v2 uses: actions/cache@v3
with: with:
path: ~/.linuxkit/cache/ path: ~/.linuxkit/cache/
key: ${{ runner.os }}-linuxkit-${{ github.sha }} key: ${{ runner.os }}-linuxkit-${{ github.sha }}