Skip to content

Commit cb5dd0d

Browse files
authored
Modify workflow to build for Raspberry Pi 0 W v1
Updated the GitHub Actions workflow to build for Raspberry Pi 0 W v1, including Go version change to 1.22 and specific build settings for linux/armV6.
1 parent e63bd5f commit cb5dd0d

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

.github/workflows/go.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Build for raspberry pi
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
3+
4+
name: Build and upload for raspberry pi 0 w v1
5+
6+
on:
7+
push:
8+
branches: [ "main" ]
9+
pull_request:
10+
branches: [ "main" ]
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- uses: actions/checkout@v4
18+
- uses: actions/setup-go@v5
19+
with:
20+
go-version: '1.22' # Specify your desired Go version
21+
- name: Build for linux/armV6
22+
env:
23+
CGO_ENABLED: 0
24+
GOOS: linux
25+
GOARCH: arm
26+
GOARM: 6
27+
run: go build -o simpleprint_linux_arm6
28+
- uses: actions/upload-artifact@v4
29+
with:
30+
name: Releases
31+
path: simpleprint_linux_arm6

0 commit comments

Comments
 (0)