bforce/.gitea/workflows/arch.yaml
Alexey Khromov 1837ebd57c
Some checks failed
Archlinux build / build (push) Failing after 3m19s
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 17s
fx workflow 19
2025-04-12 23:31:20 +03:00

37 lines
1.7 KiB
YAML

name: Archlinux build
run-name: Deploy to ${{ inputs.deploy_target }} by @${{ github.actor }} 🚀
on: [push]
jobs:
build:
runs-on: arch-latest
branches:
- 'zx'
steps:
- 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 "🔎 The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}."
- run: echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner."
- run: echo "🖥️ The workflow is now ready to test your code on the runner."
- name: Checking environment
continue-on-error: true
run: printenv
- name: Installing prerequisites - update pacman
run: pacman -Sy
- name: Installing prerequisites - install nodejs for actions & git
run: pacman --disable-sandbox --noconfirm -v -S git nodejs
- name: Downloading
continue-on-error: true
run: useradd -d /builder -g users -m builder
- 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 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 - builder -c "ls -la"
- 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 }}."