idkyet-builder-action/aur/action.yml

39 lines
1.5 KiB
YAML
Raw Permalink Normal View History

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:
2023-10-20 18:28:36 +02:00
- name: Get aur cache key
id: cache-aur-key
uses: docker://git.fml128.ch/fml128/idkyet-builder:2025.03.140102
2023-10-20 18:28:36 +02:00
with:
2023-10-25 19:18:41 +02:00
args: generate_aur_cache_key ${{ inputs.layer_config_file }}
2023-10-17 09:52:42 +02:00
- name: Restore aur cache
2024-03-28 10:06:47 +01:00
if: steps.cache-aur-key.outputs.cache-aur-key != 'empty'
2023-10-17 09:52:42 +02:00
id: cache-aur-restore
2025-01-21 11:38:20 +01:00
uses: actions/cache/restore@v4
2023-10-17 09:52:42 +02:00
with:
path: aur
2023-10-20 20:29:49 +02:00
key: aur-${{ github.repository }}-${{ steps.cache-aur-key.outputs.cache-aur-key }}
2023-12-03 12:36:26 +01:00
restore-keys: |
2023-12-03 13:56:44 +01:00
aur-${{ github.repository }}-${{ steps.cache-aur-key.outputs.cache-aur-key-restore }}
aur-${{ github.repository }}-
2023-10-17 09:52:42 +02:00
- name: Build aur
2024-03-28 10:06:47 +01:00
if: steps.cache-aur-key.outputs.cache-aur-key != 'empty' && steps.cache-aur-restore.outputs.cache-hit != 'true'
uses: docker://git.fml128.ch/fml128/idkyet-builder:2025.03.140102
2023-10-17 10:25:34 +02:00
with:
2023-10-25 19:18:41 +02:00
args: build_aur_packages ${{ inputs.layer_config_file }}
2023-10-17 09:52:42 +02:00
- name: Save aur cache
2024-03-28 10:06:47 +01:00
if: steps.cache-aur-key.outputs.cache-aur-key != 'empty' && steps.cache-aur-restore.outputs.cache-hit != 'true'
uses: actions/cache/save@v4
2023-10-17 09:52:42 +02:00
with:
path: aur
2023-10-20 20:29:49 +02:00
key: aur-${{ github.repository }}-${{ steps.cache-aur-key.outputs.cache-aur-key }}