Skip to content

Bump actions/download-artifact from 4 to 7 #305

Bump actions/download-artifact from 4 to 7

Bump actions/download-artifact from 4 to 7 #305

Workflow file for this run

name: builds
"on":
push: {}
pull_request: {}
jobs:
windows:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
version:
- "-win32"
- "-win64"
steps:
- name: checkout Xiphos
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: fetch history
run: |
git fetch origin +refs/tags/*:refs/tags/*
- name: build windows targets
shell: bash
id: build
run: |
set -ex -o pipefail
docker build -t xiphos win32
docker run -i --rm -v "$(pwd):/source" xiphos ${{ matrix.version }}
- name: upload artifact
uses: actions/upload-artifact@v4
with:
name: windows-installers${{ matrix.version }}
path: "*.exe"
arch_gtk3_wk2_libsoup2:
runs-on: ubuntu-latest
container:
image: archlinux:latest
steps:
- name: checkout xiphos
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: install dependencies
run: |
pacman -Syu --noconfirm
pacman -S --noconfirm \
appstream-glib \
biblesync \
binutils \
cmake \
dbus-glib \
docbook-utils \
enchant \
gcc \
git \
glib2-devel \
gnome-common \
gtk3 \
gtkmm \
intltool \
libsoup \
libxml2 \
make \
minizip \
pkg-config \
python \
sword \
webkit2gtk \
zip
- name: build xiphos
run: |
cmake -B build -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_MAKE_PROGRAM=make .
make -C build -j$(nproc)
make -C build mhelp package_source
arch_gtk3_wk2_libsoup3:
runs-on: ubuntu-latest
container:
image: archlinux:latest
steps:
- name: checkout xiphos
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: install dependencies
run: |
pacman -Syu --noconfirm
pacman -S --noconfirm \
appstream-glib \
biblesync \
binutils \
cmake \
dbus-glib \
docbook-utils \
enchant \
gcc \
git \
glib2-devel \
gnome-common \
gtk3 \
gtkmm \
intltool \
libsoup3 \
libxml2 \
make \
minizip \
pkg-config \
python \
sword \
webkit2gtk-4.1 \
zip
- name: build xiphos
run: |
cmake -B build -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_MAKE_PROGRAM=make .
make -C build -j$(nproc)
make -C build mhelp package_source
fedora_gtk3_wk2_libsoup3:
runs-on: ubuntu-latest
container:
image: fedora:latest
steps:
- name: checkout xiphos
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: install dependencies
run: |
dnf install -y \
biblesync-devel \
cmake \
dbus-glib-devel \
desktop-file-utils \
git \
docbook-utils \
gcc-c++ \
gtk3-devel \
intltool \
itstool \
libappstream-glib-devel \
libsoup3-devel \
libuuid-devel \
libxml2-devel \
make \
minizip-devel \
rpm-build \
sword-devel \
webkit2gtk4.1-devel \
yelp \
yelp-tools \
zip
- name: build xiphos
run: |
cmake -B build -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_MAKE_PROGRAM=make .
make -C build -j$(nproc)
make -C build mhelp package_source
fedora_gtk3_wk2_libsoup2:
runs-on: ubuntu-latest
container:
image: fedora:latest
steps:
- name: checkout xiphos
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: install dependencies
run: |
dnf install -y \
biblesync-devel \
cmake \
dbus-glib-devel \
desktop-file-utils \
git \
docbook-utils \
gcc-c++ \
gtk3-devel \
intltool \
itstool \
libappstream-glib-devel \
libsoup-devel \
libuuid-devel \
libxml2-devel \
make \
minizip-devel \
rpm-build \
sword-devel \
webkit2gtk4.0-devel \
yelp \
yelp-tools \
zip
- name: build xiphos
run: |
cmake -B build -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_MAKE_PROGRAM=make .
make -C build -j$(nproc)
make -C build mhelp package_source
debian_gtk3_wk2_libsoup3:
runs-on: ubuntu-latest
container:
image: debian:latest
steps:
- name: checkout xiphos
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: install dependencies
run: |
apt-get update
apt-get install -y \
appstream-util \
cmake \
docbook-utils \
g++ \
desktop-file-utils \
fp-utils \
gsettings-desktop-schemas-dev \
intltool \
itstool \
libbiblesync-dev \
libdbus-glib-1-dev \
libglade2-dev \
libenchant-2-dev \
libgail-3-dev \
libgtk-3-dev \
libminizip-dev \
libsoup-3.0-dev \
libsword-dev \
libwebkit2gtk-4.1-dev \
libxml2-dev \
libxml2-utils \
make \
python-dev-is-python3 \
uuid-dev \
uuid-runtime \
yelp-tools \
zip
- name: build xiphos
run: |
cmake -B build -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_MAKE_PROGRAM=make .
make -C build -j$(nproc)
make -C build mhelp package_source
ubuntu_gtk3_wk2_libsoup3:
runs-on: ubuntu-latest
container:
image: ubuntu:latest
steps:
- name: checkout xiphos
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: install dependencies
run: |
apt-get update
apt-get install -y \
appstream-util \
cmake \
g++ \
desktop-file-utils \
fp-utils \
gsettings-desktop-schemas-dev \
intltool \
itstool \
libbiblesync-dev \
libdbus-glib-1-dev \
libenchant-2-dev \
libgail-3-dev \
libglade2-dev \
libgtk-3-dev \
libminizip-dev \
libsword-dev \
libwebkit2gtk-4.1-dev \
libxml2-dev \
libxml2-utils \
make \
python3-dev \
swig \
uuid-dev \
uuid-runtime \
yelp-tools \
zip
- name: build xiphos
run: |
cmake -B build -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_MAKE_PROGRAM=make .
make -C build -j$(nproc)
make -C build mhelp package_source
deploy:
needs:
- windows
- arch_gtk3_wk2_libsoup2
- arch_gtk3_wk2_libsoup3
- debian_gtk3_wk2_libsoup3
- fedora_gtk3_wk2_libsoup3
- fedora_gtk3_wk2_libsoup2
- ubuntu_gtk3_wk2_libsoup3
if: contains(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
steps:
- name: checkout source
uses: actions/checkout@v4
with:
fetch-tags: true
ref: ${{ github.ref }}
- name: download all the artifacts
uses: actions/download-artifact@v7
- name: prepare for release
id: release
run: |
set -ex
mkdir source
tag="${GITHUB_REF#refs/tags/}"
git archive -o "source/xiphos-${tag}.tar" --prefix "xiphos-${tag}/" "${tag}"
xz "source/xiphos-${tag}.tar"
echo "tag=${tag}" >> $GITHUB_OUTPUT
pwd
- name: create release
uses: ncipollo/release-action@v1.15.0
with:
artifacts: >
source/*,
windows-installers-win32/*,
windows-installers-win64/*
allowUpdates: true
name: Release ${{ steps.release.outputs.tag }}
token: ${{ secrets.GITHUB_TOKEN }}