-
Notifications
You must be signed in to change notification settings - Fork 62
52 lines (46 loc) · 1.46 KB
/
ci.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
47
48
49
50
51
52
name: VM Manager CI
on: [push, pull_request]
permissions: read-all
jobs:
build_ubuntu_gcc:
runs-on: ${{ matrix.os }}
env:
LOCAL_INSTALL_DIR: ${{ github.workspace }}/.local
strategy:
fail-fast: false
matrix:
os: [ubuntu-20.04, ubuntu-22.04]
steps:
- uses: actions/checkout@v4
with:
path: vm-manager
fetch-depth: 0
- name: setup
run: |
sudo apt-get --quiet update --yes
sudo apt-get --quiet install --yes make devscripts lintian debhelper
sudo apt-get --quiet install --yes autoconf libtool pkg-config
git config --global user.name "github-actions"
git config --global user.email "github-actions@github.com"
gcc --version
cmake --version
which cmake
- name: build
run: |
export PATH="${{ env.LOCAL_INSTALL_DIR }}/bin:$PATH"
sudo ln -s $(which cmake) /usr/bin/cmake || echo ""
cd vm-manager/
export CC=/usr/bin/clang
export CXX=/usr/bin/clang++
debuild --preserve-env -b -uc -us --lintian-opts --profile debian
- name: artifacts
uses: actions/upload-artifact@v4
with:
name: vm-manager.${{ matrix.os }}.${{ github.run_id }}.${{ github.sha }}
path: |
${{ github.workspace }}/vm-manager/debian/
*.deb
*.ddeb
*.build
*.buildinfo
*.changes