-
Notifications
You must be signed in to change notification settings - Fork 3
60 lines (48 loc) · 1.99 KB
/
brickOS-bibo_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
53
54
55
56
57
58
59
60
name: brickOS-bibo CI
on:
workflow_dispatch:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest ]
steps:
- name: Get latest from version control
uses: actions/checkout@v4
- name: Update build environment
run: sudo apt-get --assume-yes update
- name: Install build dependencies
run: sudo apt-get --assume-yes install binutils-h8300-hms gcc-h8300-hms
- name: Execute the build
run: make
- name: Test-run a host installation
run: make DESTDIR=$(pwd)/build/destdir install
# Before archiving, tar the host installation output to preserve file permission
# c.f. https://github.com/actions/upload-artifact?tab=readme-ov-file#permission-loss
# To avoid including a "." or other unwanted directory, c.f. https://stackoverflow.com/a/39530409
- name: Tar the host installation snapshot to preserve file permissions
run: find build/destdir/ -printf "%P\n" | tar --verbose --create --file build/install.tar --no-recursion --directory=build/destdir/ --files-from=-
- name: Archive the host installation snapshot tar file
uses: actions/upload-artifact@v4
with:
name: brickOS-bibo_install_[runner~${{ matrix.os }}]_run${{ github.run_id }}.${{ github.run_number }}.${{ github.run_attempt }}
path: build/install.tar
- name: Archive the firmware image
uses: actions/upload-artifact@v4
with:
name: brickOS-bibo_firmware_[runner~${{ matrix.os }}]_run${{ github.run_id }}.${{ github.run_number }}.${{ github.run_attempt }}
path: |
kernel/*.srec
kernel/*.coff
- name: Archive the demo program files
uses: actions/upload-artifact@v4
with:
name: brickOS-bibo_programs_[runner~${{ matrix.os }}]_run${{ github.run_id }}.${{ github.run_number }}.${{ github.run_attempt }}
path: |
demo/**/*.lx
demo/**/*.a