bforce/.gitea/workflows/arch.yaml
Workflow config file is invalid. Please check your config file: yaml: unmarshal errors: line 5: cannot unmarshal !!str `${{ env...` into model.Job
Alexey Khromov a7cda5b70f
Some checks failed
Debian build / build (push) Failing after 5m4s
CI fx workflow 37
2025-04-13 19:19:34 +03:00

38 lines
1.4 KiB
YAML

name: Archlinux build
run-name: Deploy to ${{ inputs.deploy_target }} by @${{ github.actor }} 🚀
on: [push]
jobs:
if: ${{ env.GITHUB_REF == '/refs/heads/master' }}
build:
runs-on: arch-latest
if: ${{ ! startsWith(github.ref, 'refs/tags/') }}
branches:
- 'master'
- 'zx'
steps:
- 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: Adding user builder
continue-on-error: true
run: useradd -d /builder -g users -m builder
- name: Downloading PKGBUILD
run: |
su - builder -c "curl -O http://zxprj:3001/zx/bforce/raw/branch/${GITHUB_REF_NAME}/archlinux/bforce.install"
su - builder -c "curl -o PKGBUILD http://zxprj:3001/zx/bforce/raw/branch/${GITHUB_REF_NAME}/archlinux/PKGBUILD.ci"
- name: Building archlinux package
run: |
su -w GITHUB_SHA,GITHUB_REF_NAME,GITHUB_REF_TYPE - builder -c makepkg
su - builder -c "ls -la"
- name: Retrieving artifact files
run: mkdir bforce && cp /builder/bforce-r*.pkg.tar.zst bforce
- name: Try to upload artifacts
uses: actions/upload-artifact@v3
with:
name: bforce-${{ env.GITHUB_SHA }}
path: bforce