Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump artifact actions to v4 #7344

Merged
merged 3 commits into from
Oct 14, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
106 changes: 23 additions & 83 deletions .github/workflows/all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
jobs:
lint:
name: Lint
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v2
Expand All @@ -25,7 +25,7 @@ jobs:
push_translations:
name: Push translation sources to Transifex
if: github.ref == 'refs/heads/master'
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
container:
image: ubuntu:bionic
steps:
Expand Down Expand Up @@ -94,10 +94,9 @@ jobs:

create_release:
name: Create GitHub Release
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
if: github.ref == 'refs/heads/master'
needs:
- build_bionic_64
- build_bullseye_64
- build_buster_64
- build_fedora_36
Expand All @@ -110,7 +109,7 @@ jobs:
- build_source
steps:
- uses: actions/[email protected]
- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v4
with:
path: release_artifacts
- name: Create draft pre-release
Expand All @@ -129,7 +128,7 @@ jobs:

build_source:
name: Build source tarball
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
container:
image: ubuntu:focal
steps:
Expand Down Expand Up @@ -182,14 +181,14 @@ jobs:
- name: Build source tarball
working-directory: bin
run: ../dist/maketarball.sh
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v4
with:
name: release_source
path: bin/clementine-*.tar.xz

build_fedora_36:
name: Build Fedora 36 RPM
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
container:
image: fedora:36
env:
Expand Down Expand Up @@ -256,14 +255,14 @@ jobs:
- name: Build RPM
working-directory: bin
run: rpmbuild -ba ../dist/clementine.spec
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v4
with:
name: release_fedora_36
path: ~/rpmbuild/RPMS/*/clementine-*.rpm

build_fedora_37:
name: Build Fedora 37 RPM
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
container:
image: fedora:37
env:
Expand Down Expand Up @@ -330,14 +329,14 @@ jobs:
- name: Build RPM
working-directory: bin
run: rpmbuild -ba ../dist/clementine.spec
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v4
with:
name: release_fedora_37
path: ~/rpmbuild/RPMS/*/clementine-*.rpm

build_fedora_38:
name: Build Fedora 38 RPM
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
container:
image: fedora:38
env:
Expand Down Expand Up @@ -404,15 +403,15 @@ jobs:
- name: Build RPM
working-directory: bin
run: rpmbuild -ba ../dist/clementine.spec
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v4
with:
name: release_fedora_38
path: ~/rpmbuild/RPMS/*/clementine-*.rpm


build_mingw:
name: Build Windows Installer
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
container:
image: eu.gcr.io/clementine-data/mingw-w64:latest
env:
Expand Down Expand Up @@ -598,73 +597,14 @@ jobs:
- name: Build Windows installer
working-directory: dist/windows
run: makensis clementine.nsi
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v4
with:
name: release_mingw
path: dist/windows/ClementineSetup*.exe

build_bionic_64:
name: Build Ubuntu Bionic 64-bit deb
runs-on: ubuntu-22.04
container:
image: ubuntu:bionic
steps:
- name: Install dependencies
env:
DEBIAN_FRONTEND: noninteractive
run: >
apt-get update && apt-get install -y
build-essential
cmake
gettext
git
libasound2-dev
libboost-dev
libcdio-dev
libchromaprint-dev
libdbus-1-dev
libfftw3-dev
libglew1.5-dev
libglib2.0-dev
libgpod-dev
libgstreamer-plugins-base1.0-dev
libgstreamer1.0-dev
liblastfm5-dev
libmtp-dev
libprotobuf-dev
libpulse-dev
libqt5x11extras5-dev
libsqlite3-dev
libtag1-dev
pkg-config
protobuf-compiler
qtbase5-dev
qttools5-dev-tools
qttools5-dev
libsparsehash-dev
ssh
- uses: actions/[email protected]
- name: git hackery
run: git config --global --add safe.directory ${GITHUB_WORKSPACE}
- name: cmake
working-directory: bin
run: >
cmake ..
-DWITH_DEBIAN=ON
-DDEB_ARCH=amd64
-DDEB_DIST=bionic
-DENABLE_SPOTIFY_BLOB=OFF
- name: make
working-directory: bin
run : make -j2 deb
- uses: actions/upload-artifact@v2
with:
name: release_bionic_64
path: bin/clementine_*.deb

build_bullseye_64:
name: Build Debian Bullseye 64-bit deb
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
container:
image: debian:bullseye
steps:
Expand Down Expand Up @@ -717,14 +657,14 @@ jobs:
- name: make
working-directory: bin
run : make -j2 deb
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v4
with:
name: release_bullseye_64
path: bin/clementine_*.deb

build_buster_64:
name: Build Debian Buster 64-bit deb
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
container:
image: debian:buster
steps:
Expand Down Expand Up @@ -776,14 +716,14 @@ jobs:
- name: make
working-directory: bin
run : make -j2 deb
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v4
with:
name: release_buster_64
path: bin/clementine_*.deb

build_focal_64:
name: Build Ubuntu Focal 64-bit deb
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
container:
image: ubuntu:focal
steps:
Expand Down Expand Up @@ -841,14 +781,14 @@ jobs:
- name: make
working-directory: bin
run : make -j2 deb
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v4
with:
name: release_focal_64
path: bin/clementine_*.deb

build_jammy_64:
name: Build Ubuntu Jammy 64-bit deb
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
container:
image: ubuntu:jammy
steps:
Expand Down Expand Up @@ -909,7 +849,7 @@ jobs:
- name: make
working-directory: bin
run : make -j2 deb
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v4
with:
name: release_jammy_64
path: bin/clementine_*.deb
Expand Down Expand Up @@ -976,7 +916,7 @@ jobs:
- name: Build DMG
working-directory: bin
run: make dmg
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v4
with:
name: release_mac
path: bin/clementine-*.dmg
Loading