-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (36 loc) · 1.23 KB
/
build.yaml
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
name: Build for Rpi 5 (Linux 64 bit)
on: workflow_dispatch
jobs:
build:
runs-on: ubuntu-24.04
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- name: Install prerequisites
run: sudo apt update && sudo apt install --yes build-essential gcc-aarch64-linux-gnu
- name: Build Rust part
uses: dtolnay/rust-toolchain@stable
with:
targets: aarch64-unknown-linux-gnu
- run: |
cd driver_rppal
cargo build --release --target=aarch64-unknown-linux-gnu
- name: Build Go part
uses: actions/setup-go@v5
with:
go-version: '1.22'
- run: |
cd go-jtagenum
CGO_ENABLED=1 CC=aarch64-linux-gnu-gcc GOOS=linux GOARCH=arm64 go build -ldflags="-w -s" -o jtagenum-ng
- name: Set release name
run: echo "RELEASE_NAME=$(date -u +%Y.%m.%d)-$(git rev-parse --short HEAD)" >> ${GITHUB_ENV}
- name: Create Release
uses: ncipollo/release-action@v1
with:
name: ${{ env.RELEASE_NAME }}
tag: ${{ env.RELEASE_NAME }}
artifacts: "go-jtagenum/jtagenum-ng"
token: ${{ secrets.GITHUB_TOKEN }}
allowUpdates: true
draft: true