Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[58_7] Add CI for archlinux #1227

Merged
merged 10 commits into from
Oct 9, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
73 changes: 73 additions & 0 deletions .github/workflows/ci-xmake-archlinux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
name: Build on Archlinux
on:
push:
branches: [ branch-1.2 ]
paths:
- 'src/**'
- '!src/Plugins/Macos/**'
- '!src/Plugins/Windows/**'
- 'tests/**'
- 'misc/xmake/packages.lua'
- 'xmake.lua'
- '.github/workflows/ci-xmake-archlinux.yml'
pull_request:
branches: [ branch-1.2 ]
paths:
- 'src/**'
- '!src/Plugins/Macos/**'
- '!src/Plugins/Windows/**'
- 'tests/**'
- 'misc/xmake/packages.lua'
- 'xmake.lua'
- '.github/workflows/ci-xmake-archlinux.yml'

env:
XMAKE_ROOT: y
INSTALL_DIR: tmp/build/packages/app.mogan/
QT_QPA_PLATFORM: offscreen

jobs:
build:
container: archlinux:base-devel
runs-on: ubuntu-22.04
steps:
- name: Install dependencies
run: |
sudo pacman -Syyu --noconfirm --needed
sudo pacman -S --noconfirm --needed qt6-base qt6-svg libpng zlib libjpeg curl python libxext xmake unzip
- uses: actions/checkout@v3
with:
fetch-depth: 1

- name: set XMAKE_GLOBALDIR
run: echo "XMAKE_GLOBALDIR=/tmp/xmake-global" >> $GITHUB_ENV

- name: Xrepo update
da-liii marked this conversation as resolved.
Show resolved Hide resolved
run: xmake repo --update --yes

- name: cache packages from xrepo
uses: actions/cache@v3
with:
path: |
${{ env.XMAKE_GLOBALDIR }}/.xmake/packages
key: archlinux-xrepo-qt6-${{ hashFiles('**/packages.lua') }}

- name: cache xmake
uses: actions/cache@v3
with:
path: |
tmp/build/.build_cache
key: archlinux-build-qt6-${{ hashFiles('**/xmake.lua') }}


- name: config
run: xmake config -vD --policies=build.ccache -o tmp/build -m releasedbg --yes

- name: Build
run: xmake build --yes -vD research && xmake build --yes -vD --group=tests

- name: test
run: xmake run --yes -vD --group=tests

- name: integration test
run: xmake run --yes -vD --group=integration_tests