Skip to content

Commit

Permalink
add archlinux-build.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
Xiao YaoBing committed Oct 30, 2023
1 parent 6fb25dc commit f7d41fe
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 1 deletion.
42 changes: 42 additions & 0 deletions .github/workflows/archlinux-build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Build on archlinux

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Release

jobs:
container:
runs-on: ubuntu-latest
container: archlinux:latest
steps:
- name: Run in container
run: |
sed -i /etc/pacman.d/mirrorlist -e "1iServer = https://mirrors.tuna.tsinghua.edu.cn/archlinux/\$repo/os/\$arch"
cat /etc/pacman.d/mirrorlist
pacman-key --init
pacman --noconfirm --noprogressbar -Syu
- name: Install dep
run: |
pacman -Syu --noconfirm cmake pkgconfig git extra-cmake-modules qt6-base qt6-declarative qt6-wayland
- name: Set up user
run: |
useradd -m githubuser
echo -e "root ALL=(ALL:ALL) ALL\ngithubuser ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers
- uses: actions/checkout@v3
with:
submodules: true
- name: Configure CMake
run: |
mkdir -p ${{github.workspace}}/build
cmake -B ${{github.workspace}}/build -G Ninja
- name: Build
# Build your program with the given configuration
run: cmake --build ${{github.workspace}}/build
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: CMake
name: Build on Ubuntu

on:
push:
Expand Down

0 comments on commit f7d41fe

Please sign in to comment.