Skip to content

Commit 69ecbfa

Browse files
committed
ci: use Arch Linux container for native libalpm support
1 parent 2041042 commit 69ecbfa

File tree

1 file changed

+19
-14
lines changed

1 file changed

+19
-14
lines changed

.github/workflows/release.yml

Lines changed: 19 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,34 @@ on:
1515
jobs:
1616
build:
1717
runs-on: ubuntu-latest
18+
container:
19+
image: archlinux:latest
1820
outputs:
1921
version: ${{ steps.get_version.outputs.version }}
2022
should_release: ${{ steps.check_release.outputs.should_release }}
2123

2224
steps:
25+
- name: Install base dependencies
26+
run: |
27+
pacman -Syu --noconfirm
28+
pacman -S --noconfirm --needed \
29+
base-devel \
30+
git \
31+
cmake \
32+
qt6-base \
33+
qt6-tools \
34+
pacman \
35+
libarchive \
36+
curl \
37+
pkgconf
38+
2339
- name: Checkout code
2440
uses: actions/checkout@v4
2541
with:
2642
fetch-depth: 2 # Need history to check changed files
43+
44+
- name: Mark git directory as safe
45+
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
2746

2847
- name: Extract version from CMakeLists.txt
2948
id: get_version
@@ -49,20 +68,6 @@ jobs:
4968
echo "should_release=false" >> $GITHUB_OUTPUT
5069
echo "No release: not on main branch or not a push event"
5170
fi
52-
53-
- name: Install dependencies
54-
run: |
55-
sudo apt-get update
56-
sudo apt-get install -y \
57-
build-essential \
58-
cmake \
59-
qt6-base-dev \
60-
qt6-tools-dev \
61-
qt6-tools-dev-tools \
62-
libalpm-dev \
63-
libarchive-dev \
64-
libcurl4-openssl-dev \
65-
pkg-config
6671
6772
- name: Configure CMake
6873
run: |

0 commit comments

Comments
 (0)