Build palen1x #137
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build palen1x | |
on: | |
workflow_dispatch: | |
jobs: | |
build: | |
strategy: | |
fail-fast: false | |
matrix: | |
arch: [ amd64, i686, 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 RELEASE | |
- name: Prepare artifact | |
run: | | |
mkdir palen1x | |
cp work/*-${{ matrix.arch }}.iso palen1x | |
cp work/iso/boot/initramfs.xz palen1x/initramfs-${{ matrix.arch }}.xz | |
- name: Upload artifact to cdn.nickchan.lol | |
uses: wangyucode/[email protected] | |
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' |