forked from ubports/initramfs-tools-ubuntu-touch
-
Notifications
You must be signed in to change notification settings - Fork 25
46 lines (37 loc) · 1.19 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
46
name: halium-initramfs
on: [push]
jobs:
build:
runs-on: ubuntu-18.04
strategy:
matrix:
arch: [armhf, arm64, amd64]
steps:
- name: Checkout
uses: actions/checkout@master
- name: Initialize environment
run: |
sudo apt-get update
sudo apt-get install qemu-user-static debootstrap -y
- name: Build initramfs
run: sudo ARCH=${{ matrix.arch }} ./build-initrd.sh
- name : Upload artifacts
uses: actions/upload-artifact@master
with:
name: halium-initramfs-${{ matrix.arch }}
path: out/
upload:
needs: build
runs-on: ubuntu-18.04
if: startsWith(github.ref, 'refs/tags/')
steps:
- name: Download all built artifacts
uses: actions/download-artifact@v2
# Here we're abusing the "continuous" tag/release to store the latest
# built image. This is not very good practice, but GitHub won't allow
# unauthenticated user to download artifacts. Hence, this abuse.
- name: Release to the continuous tag.
uses: softprops/action-gh-release@v1
with:
files: halium-initramfs-*/*
fail_on_unmatched_files: true