-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (44 loc) · 1.15 KB
/
Copy pathmakefile.yml
File metadata and controls
46 lines (44 loc) · 1.15 KB
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
name: Build
on:
workflow_dispatch:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Cache asem51
id: cache-asem51
uses: actions/cache@v5
with:
path: tools/asem51
key: asem51-1.3
- name: Download & install assembler
if: steps.cache-asem51.outputs.cache-hit != 'true'
run: |
cd tools
wget -c 'http://plit.de/asem-51/asem51-1.3-ELF.tar.gz'
wget -c 'http://plit.de/asem-51/mcufiles.zip'
tar xf asem51-1.3-ELF.tar.gz
mv asem51/mcu asem51/mcu~
unzip -Lanq mcufiles.zip -d asem51
cd asem51
mv -n mcu~/* mcu || true
rm -rf mcu~
- name: Build tools
run: make -C tools
- name: Build
run: PATH="$PWD/tools:$PWD/tools/asem51:$PATH" make ASEM51="asem -i $PWD/tools/asem51/mcu"
- name: Prepare artifact
run: cp LICENSE.md output
- name: Upload artifact
uses: actions/upload-artifact@v7
with:
name: binaries
compression-level: 9
path: |
output/LICENSE.md
output/*.hex