-
-
Notifications
You must be signed in to change notification settings - Fork 5
45 lines (36 loc) · 1.05 KB
/
build.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
name: Build
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
build:
runs-on: ubuntu-latest
env:
GH_REPO_TOKEN: ${{ secrets.GH_REPO_TOKEN }}
container:
image: ghcr.io/churrosoft/openefi_docker:main
credentials:
username: ${{ github.actor }}
password: ${{ secrets.GH_REPO_TOKEN }}
steps:
- uses: actions/checkout@v3
- name: Build firmware
run: cargo b
- name: create build tag
run: |
echo "git_hash=$(echo $GITHUB_SHA | cut -c1-7)" >> $GITHUB_ENV
- name: Check Hash
run: echo "${{ env.git_hash }}"
- name: rename build file
run: mv target/thumbv7em-none-eabihf/release/open_efi "OpenEFI_${git_hash}.bin"
- name: Check if firmware files exits
run: |
echo "BINARY=$(find . -type f -name "*.bin")" >> $GITHUB_ENV
- uses: actions/upload-artifact@v3
name: Upload firmware files
with:
name: ${{ env.git_hash }}
path: |
${{ env.BINARY }}