Skip to content

Commit

Permalink
Create test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
RoseBlume authored Sep 25, 2024
1 parent 7606eb6 commit da5d817
Showing 1 changed file with 62 additions and 0 deletions.
62 changes: 62 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
name: Test

on:
workflow_dispatch:

jobs:
build_universal-barebone:
strategy:
matrix:
fail-fast: false
include:
- device: 'pinetab2'
ui: 'barebone'
- device: 'pinetab2'
ui: 'awesome'
- device: 'pinetab2'
ui: 'cinnamon'
- device: 'pinetab2'
ui: 'gnome'
- device: 'pinetab2'
ui: 'enlightenment'
- device: 'pinetab2'
ui: 'lxqt'
- device: 'pinetab2'
ui: 'mate'
- device: 'pinetab2'
ui: 'pantheon'
- device: 'pinetab2'
ui: 'sway'
- device: 'pinetab2'
ui: 'xfce4'
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: |
sudo chmod u+x ./build.sh
sudo ./build.sh -u ${{ matrix.ui }} -d ${{ matrix.device }} -a aarch64 -n alarm -p 123456
#- name: Compress Image
# run: |
# mv build/*.img ./archlinux-$#{{ matrix.device }}-$#{{ matrix.ui }}.img
# xz z -9 ./archlinux-$#{{ matrix.device }}-$#{{ matrix.ui }}.img
#- name: Upload Image
# uses: actions/upload-artifact@v3
# with:
# name: Compressed Image
# path: archlinux-$#{{ matrix.device }}-$#{{ matrix.ui }}.img.xz

0 comments on commit da5d817

Please sign in to comment.