-
Notifications
You must be signed in to change notification settings - Fork 258
58 lines (48 loc) · 1.43 KB
/
compile_on_commit.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
name: C/C++ CI
on:
push:
branches: [ JYT_Yose ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
env:
# ruleid: allowed-unsecure-commands
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
steps:
- uses: actions/checkout@v2
- name: log untrusted output
run: |
# disable command workflow processing
echo "::stop-commands::`echo -n ${{ github.token }} | sha256sum | head -c 64`"
# log untrusted output
echo "untrusted output"
# enable workflow command processing
echo "::`echo -n ${{ github.token }} | sha256sum | head -c 64`::"
- name: Create folder
run: |
mkdir build
ls ${{ github.workspace }}
- name: arm-none-eabi-gcc
uses: fiam/arm-none-eabi-gcc@v1.0.2
with:
release: '9-2020-q2'
- name: make
run: make
- name: Install srecord
run: |
sudo apt-get update
sudo apt-get install srecord
- name: Install java
uses: actions/setup-java@v2
with:
distribution: 'temurin' # See 'Supported distributions' for available options
java-version: '17'
- run: java -cp java make/hexToLsh.java
- name: 'Upload Artifact'
uses: actions/upload-artifact@v3
with:
path: ${{ github.workspace }}/build/EBiCS_Firmware.hex
name: EBiCS_build_${{ github.run_number }}
retention-days: 10