-
Notifications
You must be signed in to change notification settings - Fork 21
110 lines (109 loc) · 3.06 KB
/
build.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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
name: Build oxide
on:
push:
branches:
- master
paths:
- '.github/workflows/build.yml'
- 'applications/**'
- 'shared/**'
- 'assets/**'
- 'interfaces/**'
- 'qmake/**'
- 'oxide.pro'
- 'Makefile'
- 'package'
pull_request:
paths:
- '.github/workflows/build.yml'
- 'applications/**'
- 'shared/**'
- 'assets/**'
- 'interfaces/**'
- 'qmake/**'
- 'oxide.pro'
- 'Makefile'
- 'package'
jobs:
build:
name: Build and package
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install toltecmk
run: pip install toltecmk requests==2.26.0
- name: Build packages
run: make package
timeout-minutes: 15
- name: Save packages
uses: actions/upload-artifact@v3
with:
name: packages
path: release
- name: Save packages
uses: actions/upload-artifact@v3
with:
name: build
path: .build/package/build/rmall/src/release
- name: Save repo
uses: actions/upload-artifact@v3
with:
name: repo
path: .build/package/dist/rmall
test:
name: Test packages
runs-on: ubuntu-latest
needs: [build]
steps:
- uses: actions/download-artifact@v3
id: download
with:
name: repo
- uses: Eeems-Org/run-in-remarkable-action@v1
with:
setup: |
set -ex
echo "src/gz local-rmall file:///opt/tmp/src" > /opt/etc/opkg.conf.d/16-local.conf
run: |
set -ex
echo Y | toltecctl generate-opkg-conf
opkg update
opkg install oxide
# systemctl disable --now xochitl
# systemctl enable --now tarnish
# TODO install and run tests
opkg remove --force-removal-of-dependent-packages liboxide
path: ${{ steps.download.outputs.download-path }}
release:
needs: [build,test]
if: ${{ github.ref == 'refs/heads/master' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/download-artifact@v3
with:
name: build
path: .build
- name: Create Sentry release
uses: getsentry/action-release@v1
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
SENTRY_ORG: ${{ secrets.SENTRY_ORG }}
SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }}
SENTRY_URL: https://sentry.eeems.codes
- name: Setup Sentry CLI
uses: mathieu-bour/setup-sentry-cli@v1
with:
version: latest
url: https://sentry.eeems.codes
token: ${{ secrets.SENTRY_AUTH_TOKEN }}
organization: ${{ secrets.SENTRY_ORG }}
project: ${{ secrets.SENTRY_PROJECT }}
- name: Upload debug artifacts
run: sentry-cli debug-files upload --include-sources .