Skip to content

Commit

Permalink
ci: test
Browse files Browse the repository at this point in the history
  • Loading branch information
DrummyFloyd committed Jan 7, 2025
1 parent 8792fae commit 85b691a
Show file tree
Hide file tree
Showing 3 changed files with 91 additions and 32 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/amd64-targets.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: amd64 build

on:
workflow_call:
inputs:
app:
description: "App to be build on arm64"
type: string
required: true

jobs:
base:
uses: ./.github/workflows/docker-build-and-publish.yml
with:
image_name: "base"
secrets: inherit

base-app:
needs: [base]
uses: ./.github/workflows/docker-build-and-publish.yml
with:
image_name: "base-app"
base_image: "${{ needs.base.outputs.image_tag }}"
secrets: inherit

apps:
needs: [base, base-app]
uses: ./.github/workflows/docker-build-and-publish.yml
with:
image_name: "${{ inputs.app }}"
base_image: "${{ needs.base.outputs.image_tag }}"
base_app_image: "${{ needs.base-app.outputs.image_tag }}"
platforms: "linux/amd64"
secrets: inherit
34 changes: 34 additions & 0 deletions .github/workflows/arm64-targets.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: arm64 build

on:
workflow_call:
inputs:
app:
description: "App to be build on arm64"
type: string
required: true

jobs:
base:
uses: ./.github/workflows/docker-build-and-publish.yml
with:
image_name: "base"
secrets: inherit

base-app:
needs: [base]
uses: ./.github/workflows/docker-build-and-publish.yml
with:
image_name: "base-app"
base_image: "${{ needs.base.outputs.image_tag }}"
secrets: inherit

apps:
needs: [base, base-app]
uses: ./.github/workflows/docker-build-and-publish.yml
with:
image_name: "${{ inputs.app }}"
base_image: "${{ needs.base.outputs.image_tag }}"
base_app_image: "${{ needs.base-app.outputs.image_tag }}"
platforms: "linux/arm64"
secrets: inherit
55 changes: 23 additions & 32 deletions .github/workflows/auto-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,42 +19,33 @@ on:
# - cron: "0 0 * * *" # nightly

jobs:
base:
uses: ./.github/workflows/docker-build-and-publish.yml
with:
image_name: "base"
secrets: inherit

base-app:
needs: [ base ]
uses: ./.github/workflows/docker-build-and-publish.yml
arm64-build:
uses: ./.github/workflows/arm64-targets.yml
strategy:
matrix:
apps:
- firefox
fail-fast: true
with:
image_name: "base-app"
base_image: "${{ needs.base.outputs.image_tag }}"
app: ${{ matrix.apps }}
secrets: inherit

apps:
needs: [ base, base-app ]
amd64-build:
uses: ./.github/workflows/amd64-targets.yml
strategy:
matrix:
image:
- { name: xorg, platforms: "linux/amd64" }
- { name: pulseaudio, platforms: "linux/amd64" }
- { name: udevd, platforms: "linux/amd64" }
- { name: sunshine, platforms: "linux/amd64" }
- { name: retroarch, platforms: "linux/amd64" }
- { name: firefox, platforms: "linux/amd64" }
- { name: steam, platforms: "linux/amd64" }
- { name: pegasus, platforms: "linux/amd64" }
- { name: lutris, platforms: "linux/amd64" }
- { name: heroic-games-launcher, platforms: "linux/amd64" }
#- { name: es-de, platforms: "linux/amd64" }
fail-fast: false
uses: ./.github/workflows/docker-build-and-publish.yml
apps:
- firefox
- xorg
- pulseaudio
- udevd
- sunshine
- retroarch
- steam
- pegasus
- lutris
- heroic-games-launcher
fail-fast: true
with:
image_name: "${{ matrix.image.name }}"
base_image: "${{ needs.base.outputs.image_tag }}"
base_app_image: "${{ needs.base-app.outputs.image_tag }}"
platforms: "${{ matrix.image.platforms }}"
app: ${{ matrix.apps }}
secrets: inherit

0 comments on commit 85b691a

Please sign in to comment.