-
-
Notifications
You must be signed in to change notification settings - Fork 88
77 lines (67 loc) · 2.08 KB
/
build_package_x86_lunar.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
name: build_package_LUNAR
on:
push:
branches:
- "2.6-evo"
- "dev-release"
- "release"
env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Release
jobs:
build:
runs-on: ubuntu-22.04
container:
image: docker://ubuntu:lunar
env:
CLOUDSMITH_API_KEY: ${{ secrets.CLOUDSMITH_API_KEY }}
steps:
- name: test
run: |
echo "DT=$(date +'%Y-%m-%d_%H%M')" >> $GITHUB_ENV
echo "BRANCH=${GITHUB_REF##*/}" >> $GITHUB_ENV
apt update
apt install -y git sudo
- name: clone QOpenHD
run: |
git clone -b ${{ github.ref_name }} https://github.com/OpenHD/QOpenHD --recursive
- name: Install Dependencies
run: |
ls
cd QOpenHD
apt install -y python3-pip
pip install cloudsmith-api --break-system-packages
pip install cloudsmith-cli --break-system-packages
sudo -H ./install_build_dep.sh ubuntu-x86
- name: Build with make
run: |
cd QOpenHD
./package.sh regular x86_64 ubuntu lunar
ls -a
- name: Upload to Github
uses: actions/upload-artifact@v4
with:
name: "QOpenHD"
path: |
QOpenHD/*.deb
*.log
if-no-files-found: error
# - name: Push
# id: push
# if: ${{ github.ref != 'refs/heads/2.5-evo' }}
# uses: cloudsmith-io/action@master
# with:
# api-key: ${{ secrets.CLOUDSMITH_API_KEY }}
# command: "push"
# format: "deb"
# owner: "openhd"
# repo: ${{ github.ref_name }}
# distro: "ubuntu"
# release: "lunar"
# republish: "true" # needed ONLY if version is not changing
# file: "QOpenHD/*.deb"
- name: Push
if: github.ref_name == 'release' || github.ref_name == 'dev-release'
run: |
ls -a
cloudsmith push deb -k ${{ secrets.CLOUDSMITH_API_KEY }} openhd/${{ github.ref_name }}/ubuntu/lunar QOpenHD/*.deb