mirror of https://github.com/xemu-project/xemu.git
ci: Update actions to silence Node 16 warnings
This commit is contained in:
parent
94d826a4f1
commit
5a144a3fd3
|
@ -21,10 +21,10 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Clone tree
|
- name: Clone tree
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
- name: Extract image metadata (tags, labels)
|
- name: Extract image metadata (tags, labels)
|
||||||
id: meta
|
id: meta
|
||||||
uses: docker/metadata-action@v4.3.0
|
uses: docker/metadata-action@v5
|
||||||
with:
|
with:
|
||||||
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
|
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
|
||||||
labels: |
|
labels: |
|
||||||
|
@ -35,16 +35,16 @@ jobs:
|
||||||
type=ref,event=branch
|
type=ref,event=branch
|
||||||
type=sha
|
type=sha
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v2.2.1
|
uses: docker/setup-buildx-action@v3
|
||||||
- name: Login to GitHub Container Registry
|
- name: Login to GitHub Container Registry
|
||||||
uses: docker/login-action@v2
|
uses: docker/login-action@v3
|
||||||
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
|
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
|
||||||
with:
|
with:
|
||||||
registry: ${{ env.REGISTRY }}
|
registry: ${{ env.REGISTRY }}
|
||||||
username: ${{ github.actor }}
|
username: ${{ github.actor }}
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
- name: Build and push image
|
- name: Build and push image
|
||||||
uses: docker/build-push-action@v3.2.0
|
uses: docker/build-push-action@v5
|
||||||
with:
|
with:
|
||||||
context: ubuntu-win64-cross
|
context: ubuntu-win64-cross
|
||||||
push: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
|
push: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
|
||||||
|
|
|
@ -20,7 +20,7 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Clone tree
|
- name: Clone tree
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
# On push to master, increment patch version and create a new tag on release
|
# On push to master, increment patch version and create a new tag on release
|
||||||
|
@ -48,7 +48,7 @@ jobs:
|
||||||
./scripts/archive-source.sh src.tar
|
./scripts/archive-source.sh src.tar
|
||||||
gzip -1 src.tar
|
gzip -1 src.tar
|
||||||
- name: Upload source package artifact
|
- name: Upload source package artifact
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: src.tar.gz
|
name: src.tar.gz
|
||||||
path: src.tar.gz
|
path: src.tar.gz
|
||||||
|
@ -71,14 +71,14 @@ jobs:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Download source package
|
- name: Download source package
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: src.tar.gz
|
name: src.tar.gz
|
||||||
- name: Extract source package
|
- name: Extract source package
|
||||||
run: tar xf src.tar.gz
|
run: tar xf src.tar.gz
|
||||||
- name: Initialize compiler cache
|
- name: Initialize compiler cache
|
||||||
id: cache
|
id: cache
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: /tmp/xemu-ccache
|
path: /tmp/xemu-ccache
|
||||||
key: cache-wincross-${{ runner.os }}-${{ matrix.configuration }}-${{ github.sha }}
|
key: cache-wincross-${{ runner.os }}-${{ matrix.configuration }}-${{ github.sha }}
|
||||||
|
@ -97,7 +97,7 @@ jobs:
|
||||||
$DOCKER_IMAGE_NAME \
|
$DOCKER_IMAGE_NAME \
|
||||||
bash -c "ccache -z; ./build.sh -p win64-cross ${{ matrix.build_param }} && ccache -s"
|
bash -c "ccache -z; ./build.sh -p win64-cross ${{ matrix.build_param }} && ccache -s"
|
||||||
- name: Upload build artifact
|
- name: Upload build artifact
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: ${{ matrix.artifact_name }}
|
name: ${{ matrix.artifact_name }}
|
||||||
path: dist
|
path: dist
|
||||||
|
@ -118,7 +118,7 @@ jobs:
|
||||||
artifact_name: xemu-win-release
|
artifact_name: xemu-win-release
|
||||||
steps:
|
steps:
|
||||||
- name: Download artifacts
|
- name: Download artifacts
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: ${{ matrix.artifact_name }}
|
name: ${{ matrix.artifact_name }}
|
||||||
path: ${{ matrix.artifact_name }}
|
path: ${{ matrix.artifact_name }}
|
||||||
|
@ -132,7 +132,7 @@ jobs:
|
||||||
7z a -tzip ../dist/${{ matrix.artifact_name }}.zip * "-xr!*.pdb"
|
7z a -tzip ../dist/${{ matrix.artifact_name }}.zip * "-xr!*.pdb"
|
||||||
7z a -tzip ../dist/${{ matrix.artifact_name }}-pdb.zip "-ir!*.pdb"
|
7z a -tzip ../dist/${{ matrix.artifact_name }}-pdb.zip "-ir!*.pdb"
|
||||||
- name: Upload build artifact
|
- name: Upload build artifact
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: ${{ matrix.artifact_name }}-pdb
|
name: ${{ matrix.artifact_name }}-pdb
|
||||||
path: dist
|
path: dist
|
||||||
|
@ -155,13 +155,13 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- name: Initialize compiler cache
|
- name: Initialize compiler cache
|
||||||
id: cache
|
id: cache
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: /tmp/xemu-ccache
|
path: /tmp/xemu-ccache
|
||||||
key: cache-${{ runner.os }}-${{ matrix.configuration }}-${{ github.sha }}
|
key: cache-${{ runner.os }}-${{ matrix.configuration }}-${{ github.sha }}
|
||||||
restore-keys: cache-${{ runner.os }}-${{ matrix.configuration }}-
|
restore-keys: cache-${{ runner.os }}-${{ matrix.configuration }}-
|
||||||
- name: Download source package
|
- name: Download source package
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: src.tar.gz
|
name: src.tar.gz
|
||||||
- name: Extract source package
|
- name: Extract source package
|
||||||
|
@ -169,7 +169,7 @@ jobs:
|
||||||
mkdir src
|
mkdir src
|
||||||
tar -C src -xf src.tar.gz
|
tar -C src -xf src.tar.gz
|
||||||
- name: Clone Debian packaging
|
- name: Clone Debian packaging
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
ref: deb
|
ref: deb
|
||||||
path: debian-tmp
|
path: debian-tmp
|
||||||
|
@ -232,7 +232,7 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
tar -czvf ${{ matrix.artifact_filename }} --transform "s#^dist#xemu#" dist
|
tar -czvf ${{ matrix.artifact_filename }} --transform "s#^dist#xemu#" dist
|
||||||
- name: Upload build artifact
|
- name: Upload build artifact
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: ${{ matrix.artifact_name }}
|
name: ${{ matrix.artifact_name }}
|
||||||
path: ${{ matrix.artifact_filename }}
|
path: ${{ matrix.artifact_filename }}
|
||||||
|
@ -266,7 +266,7 @@ jobs:
|
||||||
artifact_filename: xemu-macos-arm64-release.zip
|
artifact_filename: xemu-macos-arm64-release.zip
|
||||||
steps:
|
steps:
|
||||||
- name: Download source package
|
- name: Download source package
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: src.tar.gz
|
name: src.tar.gz
|
||||||
- name: Extract source package
|
- name: Extract source package
|
||||||
|
@ -284,7 +284,7 @@ jobs:
|
||||||
python3 -m pip install pyyaml requests
|
python3 -m pip install pyyaml requests
|
||||||
- name: Initialize compiler, library cache
|
- name: Initialize compiler, library cache
|
||||||
id: cache
|
id: cache
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
xemu-ccache
|
xemu-ccache
|
||||||
|
@ -304,7 +304,7 @@ jobs:
|
||||||
zip -r ../${{ matrix.artifact_filename }} *
|
zip -r ../${{ matrix.artifact_filename }} *
|
||||||
popd
|
popd
|
||||||
- name: Upload build artifact
|
- name: Upload build artifact
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: ${{ matrix.artifact_name }}
|
name: ${{ matrix.artifact_name }}
|
||||||
path: ${{ matrix.artifact_filename }}
|
path: ${{ matrix.artifact_filename }}
|
||||||
|
@ -318,12 +318,12 @@ jobs:
|
||||||
configuration: ["debug", "release"]
|
configuration: ["debug", "release"]
|
||||||
steps:
|
steps:
|
||||||
- name: Download x86_64 build
|
- name: Download x86_64 build
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: xemu-macos-x86_64-${{ matrix.configuration }}
|
name: xemu-macos-x86_64-${{ matrix.configuration }}
|
||||||
path: xemu-macos-x86_64-${{ matrix.configuration }}
|
path: xemu-macos-x86_64-${{ matrix.configuration }}
|
||||||
- name: Download arm64 build
|
- name: Download arm64 build
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: xemu-macos-arm64-${{ matrix.configuration }}
|
name: xemu-macos-arm64-${{ matrix.configuration }}
|
||||||
path: xemu-macos-arm64-${{ matrix.configuration }}
|
path: xemu-macos-arm64-${{ matrix.configuration }}
|
||||||
|
@ -347,7 +347,7 @@ jobs:
|
||||||
zip -r ../xemu-macos-universal-${{ matrix.configuration }}.zip *
|
zip -r ../xemu-macos-universal-${{ matrix.configuration }}.zip *
|
||||||
popd
|
popd
|
||||||
- name: Upload build artifact
|
- name: Upload build artifact
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: xemu-macos-universal-${{ matrix.configuration }}
|
name: xemu-macos-universal-${{ matrix.configuration }}
|
||||||
path: xemu-macos-universal-${{ matrix.configuration }}.zip
|
path: xemu-macos-universal-${{ matrix.configuration }}.zip
|
||||||
|
@ -358,7 +358,7 @@ jobs:
|
||||||
needs: [Ubuntu, macOSUniversal, WindowsPdb]
|
needs: [Ubuntu, macOSUniversal, WindowsPdb]
|
||||||
steps:
|
steps:
|
||||||
- name: Download artifacts
|
- name: Download artifacts
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
path: dist
|
path: dist
|
||||||
- name: Extract source package
|
- name: Extract source package
|
||||||
|
@ -411,7 +411,7 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Download source package
|
- name: Download source package
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: src.tar.gz
|
name: src.tar.gz
|
||||||
- name: Extract source package
|
- name: Extract source package
|
||||||
|
@ -419,7 +419,7 @@ jobs:
|
||||||
mkdir src
|
mkdir src
|
||||||
tar -C src -xf src.tar.gz
|
tar -C src -xf src.tar.gz
|
||||||
- name: Clone Debian packaging
|
- name: Clone Debian packaging
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
ref: deb
|
ref: deb
|
||||||
path: debian-tmp
|
path: debian-tmp
|
||||||
|
|
Loading…
Reference in New Issue