fx workflow 18
This commit is contained in:
parent
7733d5d663
commit
2eb30b7644
@ -1,10 +1,11 @@
|
|||||||
name: Archlinux build
|
name: Archlinux build
|
||||||
run-name: ${{ github.event.name}} building 🚀
|
run-name: Deploy to ${{ inputs.deploy_target }} by @${{ github.actor }} 🚀
|
||||||
on: [push]
|
on: [push]
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: arch-latest
|
runs-on: arch-latest
|
||||||
if: github.ref == 'refs/heads/zx'
|
branches:
|
||||||
|
- 'zx'
|
||||||
steps:
|
steps:
|
||||||
- run: echo "🎉 The job was automatically triggered by a ${{ github.event.name }} event."
|
- run: echo "🎉 The job was automatically triggered by a ${{ github.event.name }} event."
|
||||||
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by Gitea!"
|
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by Gitea!"
|
||||||
@ -16,13 +17,19 @@ jobs:
|
|||||||
run: printenv
|
run: printenv
|
||||||
- name: Installing prerequisites - update pacman
|
- name: Installing prerequisites - update pacman
|
||||||
run: pacman -Sy
|
run: pacman -Sy
|
||||||
- name: Installing prerequisites - install git
|
- name: Installing prerequisites - install nodejs for actions & git
|
||||||
run: pacman --disable-sandbox --noconfirm -v -S git
|
run: pacman --disable-sandbox --noconfirm -v -S git nodejs
|
||||||
- name: Downloading
|
- name: Downloading
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
run: useradd -d ${{ gitea.basedir }}/builder -g users -m builder
|
run: useradd -d /builder -g users -m builder
|
||||||
- run: su - builder -c pwd
|
- run: su - builder -c pwd
|
||||||
- run: su - builder -c "curl -O http://zxprj:3001/zx/bforce/raw/branch/${GITHUB_REF_NAME}/archlinux/bforce.install"
|
- run: su - builder -c "curl -O http://zxprj:3001/zx/bforce/raw/branch/${GITHUB_REF_NAME}/archlinux/bforce.install"
|
||||||
- run: su - builder -c "curl -o PKGBUILD http://zxprj:3001/zx/bforce/raw/branch/${GITHUB_REF_NAME}/archlinux/PKGBUILD.ci"
|
- run: su - builder -c "curl -o PKGBUILD http://zxprj:3001/zx/bforce/raw/branch/${GITHUB_REF_NAME}/archlinux/PKGBUILD.ci"
|
||||||
- run: su --w GITHUB_SHA,GITHUB_REF_NAME,GITHUB_REF_TYPE - builder -c makepkg
|
- run: su -w GITHUB_SHA,GITHUB_REF_NAME,GITHUB_REF_TYPE - builder -c makepkg
|
||||||
|
- run: mkdir bforce && cp /builder/bforce-*.xz bforce
|
||||||
|
- name: Try to upload artifacts
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: bforce
|
||||||
|
path: bforce
|
||||||
- run: echo "🍏 This job's status is ${{ github.state }}."
|
- run: echo "🍏 This job's status is ${{ github.state }}."
|
||||||
|
Loading…
x
Reference in New Issue
Block a user