Build palen1x #162
This file contains hidden or 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: [ 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' |