2023-10-17 09:52:42 +02:00
|
|
|
name: 'idkyet aur builder'
|
|
|
|
description: 'aur builder for the idkyet linux project'
|
2023-10-14 08:31:05 +02:00
|
|
|
inputs:
|
|
|
|
layer_config_file:
|
|
|
|
description: 'layer config file'
|
|
|
|
required: true
|
|
|
|
#outputs:
|
|
|
|
# hashes:
|
|
|
|
# description: 'json dict of hashes of all files'
|
|
|
|
runs:
|
2023-10-17 09:52:42 +02:00
|
|
|
using: "composite"
|
|
|
|
steps:
|
|
|
|
- name: Restore aur cache
|
|
|
|
id: cache-aur-restore
|
|
|
|
uses: https://code.forgejo.org/actions/cache/restore@v3
|
|
|
|
with:
|
|
|
|
path: aur
|
|
|
|
key: ${{ runner.os }}-${{ github.repository }}-aur-${{ github.run_number }}
|
|
|
|
restore-keys: ${{ runner.os }}-${{ github.repository }}-aur-
|
|
|
|
- name: Build aur
|
|
|
|
if: steps.cache-aur-restore.outputs.cache-hit != 'true'
|
|
|
|
uses: docker://git.fml128.ch/fml128/idkyet-builder:latest
|
2023-10-17 10:25:34 +02:00
|
|
|
with:
|
|
|
|
args:
|
|
|
|
- aur
|
2023-10-17 09:52:42 +02:00
|
|
|
- name: Save aur cache
|
|
|
|
if: steps.cache-aur-restore.outputs.cache-hit != 'true'
|
|
|
|
uses: actions/cache/save@v3
|
|
|
|
with:
|
|
|
|
path: aur
|
|
|
|
# key: ${{ steps.cache-primes-restore.outputs.cache-primary-key }} #TODO: implement this for better caching
|
|
|
|
key: ${{ runner.os }}-${{ github.repository }}-aur-${{ github.run_number }}
|