mirror of
https://github.com/mkxp-z/mkxp-z.git
synced 2025-09-10 12:02:53 +02:00
Update non-libretro CI
GitHub has deprecated some of the v3 actions, so I've updated them to v4.
This commit is contained in:
parent
16f21ff043
commit
53a638ab74
1 changed files with 19 additions and 32 deletions
51
.github/workflows/autobuild.yml
vendored
51
.github/workflows/autobuild.yml
vendored
|
@ -23,7 +23,6 @@ jobs:
|
|||
- uses: msys2/setup-msys2@v2
|
||||
with:
|
||||
msystem: mingw64
|
||||
# zip is just used for artifact compression at the end.
|
||||
install: >-
|
||||
base-devel
|
||||
git
|
||||
|
@ -33,13 +32,11 @@ jobs:
|
|||
mingw-w64-x86_64-meson
|
||||
mingw-w64-x86_64-autotools
|
||||
mingw-w64-x86_64-gcc
|
||||
zip
|
||||
|
||||
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v3
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- uses: actions/cache@v3
|
||||
- uses: actions/cache@v4
|
||||
with:
|
||||
path: |
|
||||
windows/build-mingw64
|
||||
|
@ -74,16 +71,11 @@ jobs:
|
|||
cp ../../mkxp.json .
|
||||
cp -r ../../scripts .
|
||||
cp ../../assets/LICENSE.mkxp-z-with-https.txt .
|
||||
cd ..
|
||||
# Zipping before uploading decreases the upload time considerably.
|
||||
# Unfortunately this results in double-zipping; tracked at:
|
||||
# https://github.com/actions/upload-artifact/issues/426
|
||||
zip -r artifact.zip artifact
|
||||
|
||||
- uses: actions/upload-artifact@v3
|
||||
- uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: mkxp-z.windows.${{github.event_name == 'pull_request' && format('PR{0}', github.event.number) || github.ref_name}}-${{steps.short-sha.outputs.sha}}
|
||||
path: build/artifact.zip
|
||||
path: build/artifact
|
||||
|
||||
build-linux-native:
|
||||
name: Ubuntu 22.04 x86_64
|
||||
|
@ -95,9 +87,9 @@ jobs:
|
|||
length: 7
|
||||
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v3
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- uses: actions/cache@v3
|
||||
- uses: actions/cache@v4
|
||||
with:
|
||||
path: |
|
||||
linux/build-x86_64
|
||||
|
@ -107,7 +99,8 @@ jobs:
|
|||
- name: Install apt dependencies
|
||||
run: |
|
||||
sudo apt update
|
||||
sudo apt install git build-essential cmake meson autoconf automake libtool pkg-config ruby bison zlib1g-dev libbz2-dev xorg-dev libgl1-mesa-dev libasound2-dev libpulse-dev -y
|
||||
sudo apt install git build-essential cmake python3-pip autoconf automake libtool pkg-config ruby bison zlib1g-dev libbz2-dev xorg-dev libgl1-mesa-dev libasound2-dev libpulse-dev -y
|
||||
pip3 install meson
|
||||
|
||||
- name: Build everything else
|
||||
run: |
|
||||
|
@ -130,16 +123,11 @@ jobs:
|
|||
cp ../../mkxp.json .
|
||||
cp -r ../../scripts .
|
||||
cp ../../assets/LICENSE.mkxp-z-with-https.txt .
|
||||
cd ..
|
||||
# Zipping before uploading preserves +x permissions.
|
||||
# Unfortunately this results in double-zipping; tracked at:
|
||||
# https://github.com/actions/upload-artifact/issues/426
|
||||
zip -r local.zip local
|
||||
|
||||
- uses: actions/upload-artifact@v3
|
||||
- uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: mkxp-z.linux.x86_64.${{github.event_name == 'pull_request' && format('PR{0}', github.event.number) || github.ref_name}}-${{steps.short-sha.outputs.sha}}
|
||||
path: build/local.zip
|
||||
path: build/local
|
||||
|
||||
build-linux-cross:
|
||||
name: Ubuntu 22.04 ${{matrix.arch_mkxpz}}
|
||||
|
@ -191,9 +179,9 @@ jobs:
|
|||
length: 7
|
||||
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v3
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- uses: actions/cache@v3
|
||||
- uses: actions/cache@v4
|
||||
with:
|
||||
path: |
|
||||
linux/build-${{matrix.arch_mkxpz}}
|
||||
|
@ -212,7 +200,8 @@ jobs:
|
|||
echo "deb [arch=${{matrix.arch_debian}}] http://ports.ubuntu.com/ jammy-updates multiverse" | sudo tee -a /etc/apt/sources.list
|
||||
echo "deb [arch=${{matrix.arch_debian}}] http://ports.ubuntu.com/ jammy-backports main restricted universe multiverse" | sudo tee -a /etc/apt/sources.list
|
||||
sudo apt update
|
||||
sudo apt install git build-essential cmake meson autoconf automake libtool pkg-config ruby bison -y
|
||||
sudo apt install git build-essential cmake python3-pip autoconf automake libtool pkg-config ruby bison -y
|
||||
pip3 install meson
|
||||
sudo apt install libdmx-dev:${{matrix.arch_debian}} libfontenc-dev:${{matrix.arch_debian}} libfs-dev:${{matrix.arch_debian}} libice-dev:${{matrix.arch_debian}} libsm-dev:${{matrix.arch_debian}} libx11-dev:${{matrix.arch_debian}} libxau-dev:${{matrix.arch_debian}} libxaw7-dev:${{matrix.arch_debian}} libxcomposite-dev:${{matrix.arch_debian}} libxcursor-dev:${{matrix.arch_debian}} libxdamage-dev:${{matrix.arch_debian}} libxdmcp-dev:${{matrix.arch_debian}} libxext-dev:${{matrix.arch_debian}} libxfixes-dev:${{matrix.arch_debian}} libxfont-dev:${{matrix.arch_debian}} libxft-dev:${{matrix.arch_debian}} libxi-dev:${{matrix.arch_debian}} libxinerama-dev:${{matrix.arch_debian}} libxkbfile-dev:${{matrix.arch_debian}} libxmu-dev:${{matrix.arch_debian}} libxmuu-dev:${{matrix.arch_debian}} libxpm-dev:${{matrix.arch_debian}} libxrandr-dev:${{matrix.arch_debian}} libxrender-dev:${{matrix.arch_debian}} libxres-dev:${{matrix.arch_debian}} libxss-dev:${{matrix.arch_debian}} libxt-dev:${{matrix.arch_debian}} libxtst-dev:${{matrix.arch_debian}} libxv-dev:${{matrix.arch_debian}} libxvmc-dev:${{matrix.arch_debian}} libxxf86dga-dev:${{matrix.arch_debian}} libxxf86vm-dev:${{matrix.arch_debian}} x11proto-dev:${{matrix.arch_debian}} xserver-xorg-dev:${{matrix.arch_debian}} xtrans-dev:${{matrix.arch_debian}} -y
|
||||
sudo apt install gcc-${{matrix.arch_gcc}} g++-${{matrix.arch_gcc}} zlib1g-dev:${{matrix.arch_debian}} libbz2-dev:${{matrix.arch_debian}} libgl1-mesa-dev:${{matrix.arch_debian}} libasound2-dev:${{matrix.arch_debian}} libpulse-dev:${{matrix.arch_debian}} -y
|
||||
|
||||
|
@ -241,13 +230,11 @@ jobs:
|
|||
cp ../../mkxp.json .
|
||||
cp -r ../../scripts .
|
||||
cp ../../assets/LICENSE.mkxp-z-with-https.txt .
|
||||
cd ..
|
||||
zip -r local.zip local
|
||||
|
||||
- uses: actions/upload-artifact@v3
|
||||
- uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: mkxp-z.linux.${{matrix.arch_mkxpz}}.${{github.event_name == 'pull_request' && format('PR{0}', github.event.number) || github.ref_name}}-${{steps.short-sha.outputs.sha}}
|
||||
path: build/local.zip
|
||||
path: build/local
|
||||
|
||||
build-macos:
|
||||
name: macOS
|
||||
|
@ -262,9 +249,9 @@ jobs:
|
|||
run: brew remove --force $(brew list)
|
||||
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v3
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- uses: actions/cache@v3
|
||||
- uses: actions/cache@v4
|
||||
with:
|
||||
path: |
|
||||
macos/Dependencies/build-macosx-x86_64
|
||||
|
@ -295,7 +282,7 @@ jobs:
|
|||
ditto -c -k --sequesterRsrc --keepParent Z-universal.app Z-universal.app.zip
|
||||
|
||||
- name: Upload archive
|
||||
uses: actions/upload-artifact@v3
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: mkxp-z.macos.${{github.event_name == 'pull_request' && format('PR{0}', github.event.number) || github.ref_name}}-${{steps.short-sha.outputs.sha}}
|
||||
path: build/Build/Products/Release/Z-universal.app.zip
|
||||
|
|
Loading…
Add table
Reference in a new issue