-
Notifications
You must be signed in to change notification settings - Fork 1
62 lines (53 loc) · 1.37 KB
/
build-images.yaml
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
name: build-images
on:
push:
branches: [ main ]
tags:
- '*'
pull_request:
# all branches for now while we're testing.
#branches: [ main ]
jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: install needed packages
run: |
sudo apt update
sudo apt install binfmt-support
sudo apt install qemu qemu-user-static
sudo update-binfmts --enable
# Build image with docker
- name: Build the full image
run: ./build-docker.sh -c gl-config-release
# Print output directory files
- name: List output files
run: ls -lh deploy
- name: Upload built image
uses: actions/upload-artifact@v3
with:
name: rpios-image
path: ./deploy/image_*.img.xz
if-no-files-found: error
- name: Upload debug artifacts
uses: actions/upload-artifact@v3
with:
name: debug-files
path: |
./deploy/*.info
./deploy/build.log
if-no-files-found: error
release:
if: startsWith(github.ref, 'refs/tags/')
needs: [build]
runs-on: ubuntu-22.04
steps:
- uses: actions/download-artifact@v3
with:
name: rpios-image
- uses: softprops/action-gh-release@v1
with:
files: '**/*'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}