Skip to content

build-freecad-pkgs #993

build-freecad-pkgs

build-freecad-pkgs #993

Workflow file for this run

name: build-freecad-pkgs
on:
schedule:
- cron: '30 17 * * *'
workflow_dispatch:
concurrency:
group: build-pkgs
cancel-in-progress: true
jobs:
build-pkg-upload:
runs-on: ubuntu-latest
container: ghcr.io/adrianinsaval/archbuilder:main
env:
SRCDEST: /home/build/src
PKGDEST: /home/build/pkg
releaseTag: archlinux-x86_64
CCACHE_MAXSIZE: 1.5G
steps:
- uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: Update packages
run: |
pacman -Sy archlinux-keyring --noconfirm --needed
pacman -Syu --noconfirm
- name: Setup ccache
uses: actions/cache@v4
with:
save-always: true
path: /home/build/.cache/ccache
key: ccache-${{ github.run_id }}
restore-keys: ccache-
- name: Run makepkg
run: |
chown -R build:wheel .
cp -p makepkg.conf /home/build/.makepkg.conf
cd PKGBUILD/freecad-git
su build --command='makepkg -s --noconfirm --nocheck'
- name: Run namcap
run: namcap -i $PKGDEST/*.pkg.*
- name: Print ccache ussage statistics
run: su build --command='ccache -s'
- name: Download repo database and add packages
run: |
curl -o $PKGDEST/adrianinsaval.db.tar \
https://github.com/adrianinsaval/pacman-repo/releases/download/$releaseTag/adrianinsaval.db
curl -o $PKGDEST/adrianinsaval.files.tar \
https://github.com/adrianinsaval/pacman-repo/releases/download/$releaseTag/adrianinsaval.files
repo-add $PKGDEST/adrianinsaval.db.tar $PKGDEST/*.pkg.*
- name: Upload packages to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ${{ env.PKGDEST }}/*.pkg.*
file_glob: true
tag: ${{ env.releaseTag }}
overwrite: true
- name: Upload repo database to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ${{ env.PKGDEST }}/*(*.db|*.files)
file_glob: true
tag: ${{ env.releaseTag }}
overwrite: true