-
Notifications
You must be signed in to change notification settings - Fork 7
85 lines (69 loc) · 2 KB
/
ci-create_release.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
# Leka - LekaOS
# Copyright 2022 APF France handicap
# SPDX-License-Identifier: Apache-2.0
name: Create Release
on:
push:
branches:
- main
- develop
pull_request:
types: [opened, synchronize, reopened]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
bootloader_os_firmware:
name: Bootloader + OS = Firmware
runs-on: ubuntu-22.04
steps:
#
# Mark: - Setup
#
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: Setup CI
uses: ./.github/actions/setup
with:
ccache_key: ${{ runner.os }}-ccache-create_release
ccache_restore_keys: |
${{ runner.os }}-ccache-create_release-
${{ runner.os }}-ccache-
#
# Mark: - Config & build
#
- name: Get key to sign
run: |
echo "${{ secrets.FIRMWARE_SIGNING_KEY }}" > signing-keys.pem
- name: Ccache pre build
run: |
make ccache_prebuild
- name: Build firmware, os, bootloader
run: |
make config_firmware firmware
- name: Ccache post build
run: |
make ccache_postbuild
cat ${{ env.CCACHE_LOGFILE }} || True
ccache -z
#
# Mark: - Upload
#
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: bootloader_os_firmware
retention-days: 7
path: |
_build_firmware/app/release/Firmware-*.hex
_build_firmware/app/release/LekaOS-*.bin
#
# Mark: - Check versions from files and os_version are identical
#
- name: Check os/firmware version
id: check_os_firmware_version
uses: ./.github/actions/check_version
with:
firmware_hex_path: _build_firmware/app/release/Firmware-*.hex
os_bin_path: _build_firmware/app/release/LekaOS-*.bin