Update github actions
This commit is contained in:
parent
a54008530a
commit
10b447bcc1
28
.github/workflows/platform_natives.yaml
vendored
28
.github/workflows/platform_natives.yaml
vendored
@ -69,39 +69,39 @@ jobs:
|
||||
|
||||
- name: Set up QEMU
|
||||
if: matrix.usedocker == 'true' && matrix.useqemu == 'true'
|
||||
uses: docker/setup-qemu-action@v1
|
||||
uses: docker/setup-qemu-action@v2
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
if: matrix.usedocker == 'true'
|
||||
uses: docker/setup-buildx-action@v1
|
||||
uses: docker/setup-buildx-action@v2
|
||||
|
||||
- name: Cache Docker layers
|
||||
if: matrix.usedocker == 'true'
|
||||
uses: actions/cache@v2
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: /tmp/.buildx-cache
|
||||
key: ${{ runner.os }}-v2-buildx-cache-${{ env.SAFE_ARCH }}-${{ github.sha }}
|
||||
key: ${{ runner.os }}-v3-buildx-cache-${{ env.SAFE_ARCH }}-${{ github.sha }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-v2-buildx-cache-${{ env.SAFE_ARCH }}-
|
||||
${{ runner.os }}-v3-buildx-cache-${{ env.SAFE_ARCH }}-
|
||||
|
||||
- name: Cache Maven
|
||||
uses: actions/cache@v2
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: ~/.m2/repository
|
||||
key: ${{ runner.os }}-v2-maven-${{ env.SAFE_ARCH }}-${{ hashFiles('**/pom.xml') }}
|
||||
key: ${{ runner.os }}-v3-maven-${{ env.SAFE_ARCH }}-${{ hashFiles('**/pom.xml') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-v2-maven-${{ env.SAFE_ARCH }}-
|
||||
${{ runner.os }}-v3-maven-${{ env.SAFE_ARCH }}-
|
||||
|
||||
- name: Cache packages cache
|
||||
uses: actions/cache@v2
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: ~/tdlight-java-natives/tdlight-java-natives/.cache
|
||||
key: ${{ runner.os }}-v2-packages-${{ env.SAFE_ARCH }}-${{ github.sha }}
|
||||
key: ${{ runner.os }}-v3-packages-${{ env.SAFE_ARCH }}-${{ github.sha }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-v2-packages-${{ env.SAFE_ARCH }}-
|
||||
${{ runner.os }}-v3-packages-${{ env.SAFE_ARCH }}-
|
||||
|
||||
- name: Cache ccache
|
||||
uses: actions/cache@v2
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: ~/.ccache
|
||||
key: ${{ runner.os }}-v2-ccache-${{ env.SAFE_ARCH }}-${{ github.sha }}
|
||||
@ -110,7 +110,7 @@ jobs:
|
||||
|
||||
- name: Build image
|
||||
if: matrix.usedocker == 'true'
|
||||
uses: docker/build-push-action@v2
|
||||
uses: docker/build-push-action@v3
|
||||
with:
|
||||
context: .
|
||||
file: ./Dockerfile
|
||||
@ -253,7 +253,7 @@ jobs:
|
||||
- id: getfilepath
|
||||
shell: bash
|
||||
run: echo "::set-output name=file::$(ls generated/target/tdli*-natives-*.jar)"
|
||||
- uses: actions/upload-artifact@v2
|
||||
- uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: ${{ steps.getfilename.outputs.file }}
|
||||
path: ${{ steps.getfilepath.outputs.file }}
|
||||
|
Loading…
Reference in New Issue
Block a user