-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (44 loc) · 1.43 KB
/
pi4.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
45
46
47
48
49
50
51
52
name: archlinux-pi Raspberry Pi 4
on:
push:
pull_request:
schedule:
- cron: '0 0 1 * *'
jobs:
build:
name: archlinux-pi Raspberry Pi 4 Image
runs-on: ubuntu-latest
steps:
- name: Set variables
id: set-vars
run: |
echo "::set-output name=date::$(date +'%Y-%m-%d %H:%M')"
- name: Check out repository
uses: actions/checkout@v2
- name: Setup QEMU
uses: docker/setup-qemu-action@v2
with:
platforms: linux/amd64,linux/arm64,linux/arm
- name: Build archlinux-pi-rp4.img
run: docker run --rm --privileged -v /dev:/dev -v ${PWD}:/build mkaczanowski/packer-builder-arm build archlinux-pi-rp4.json
- name: Compress output
run: sudo xz -9 archlinux-pi-rp4.img
- name: Remove release
uses: kopp/action-delete-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: latest
- name: Upload release
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: latest
name: archlinux-pi ${{ github.run_number }} from ${{ steps.set-vars.outputs.date }}
body: |
To use this package, please `unxz archlinux-pi-rp4.img.xz` then `dd` to an SD card device.
files: |
archlinux-pi-rp4.img.xz
draft: false
prerelease: false