forked from dreemurrs-embedded/arch-pine64-build
-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (48 loc) · 1.53 KB
/
test.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
47
48
49
50
51
52
53
54
name: Test Maui
on:
workflow_dispatch:
jobs:
build_tabs:
strategy:
matrix:
include:
- device: pinetab2
ui: maui
- device: pinetab
runs-on: ubuntu-latest #${{ matrix.platform }#}
steps:
- name: Checkout repository
uses: actions/checkout@v3
#- name: Install tools
# if#: matrix.platform == #'self-hosted'
# run: |
# sudo pacman -Syu --noconfirm
# sudo pacman -S --noconfirm devtools \
# lsof \
# wget \
# fdisk \
# bsdtar
- name: Install tools
run: |
sudo apt-get update
sudo apt-get install -y lsof wget util-linux libarchive-tools e2fsprogs dosfstools arch-install-scripts fdisk qemu-user-static
- name: Run build script
run: |
chmod +x ./build.sh
sudo ./build.sh -u plasma_desktop -d pinetab2 -a aarch64
- name: Set environment variables
run: |
echo "DEVICE=${{ matrix.device }}" >> $GITHUB_ENV
echo "UI=${{ matrix.ui }}" >> $GITHUB_ENV
- name: Run build script
run: |
chmod +x ./build.sh
sudo ./build.sh -u $UI -d $DEVICE -a aarch64
- name: Move image file
run: |
mv build/*.img ./${DEVICE}-${UI}-archlinux.img
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: ${{ matrix.device }}-${{ matrix.ui }}-archlinux.img
path: ./${{ matrix.device }}-${{ matrix.ui }}-archlinux.img