-
Notifications
You must be signed in to change notification settings - Fork 10
46 lines (36 loc) · 1.26 KB
/
arch-latest.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: Arch Build
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [ master ]
pull_request:
branches: [ master ]
# Allows you to run this workflow manually from the Actions tab
# workflow_dispatch:
# env:
# # Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
# BUILD_TYPE: Release
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
build:
runs-on: ubuntu-latest
container:
image: archlinux:latest
options: --privileged
steps:
- uses: actions/checkout@v4
- name: "Install dependencies"
run: "pacman -Syu --noconfirm base-devel qt6-base qt6-svg qt6-multimedia cmake"
- name: "Create build directory and run CMake"
run: "mkdir build && cd build && \
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_PREFIX=/usr .."
- name: "Build"
run: "cd build && make"
- name: Prepare build artifacts
run: "cd build && make DESTDIR=install install"
- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: build-install
path: build/install