-
-
Notifications
You must be signed in to change notification settings - Fork 72
48 lines (41 loc) · 1.2 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
47
48
name: Build palen1x
on:
workflow_dispatch:
jobs:
build:
strategy:
fail-fast: false
matrix:
arch: [ x86_64, x86, aarch64, armv7 ]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Get version
id: version
run: echo "VERSION=$(cat version)" >> $GITHUB_ENV
- name: Install qemu-user-static
run: |
sudo apt-get update
sudo apt-get install -y qemu-user-static
- name: Build
env:
ARCH: ${{ matrix.arch }}
run: |
sudo -E ./build.sh
- name: Prepare artifact
run: |
mkdir palen1x
cp work/*.iso palen1x
cp work/iso/boot/initramfs.xz palen1x/initramfs-${{ matrix.arch }}.xz
- name: Upload artifact to cdn.nickchan.lol
uses: wangyucode/sftp-upload-action@v1.4.8
with:
host: ${{ secrets.NICKCHAN_FTP_HOST }}
port: ${{ secrets.NICKCHAN_FTP_PORT }}
username: palera1n
password: ${{ secrets.NICKCHAN_FTP_PASS }}
forceUpload: true
dryRun: false
localDir: 'palen1x/'
remoteDir: '/palera1n/artifacts/palen1x/release'