forked from zzxyb/wsmwayland
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Xiao YaoBing
committed
Oct 30, 2023
1 parent
6fb25dc
commit f7d41fe
Showing
2 changed files
with
43 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
2 changes: 1 addition & 1 deletion
2
.github/workflows/cmake.yml → .github/workflows/ubuntu-build.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: CMake | ||
name: Build on Ubuntu | ||
|
||
on: | ||
push: | ||
|