Compare commits

...

2 Commits

Author SHA1 Message Date
Samuel Attard
71e956f755 better name 2024-06-17 23:26:37 -07:00
Samuel Attard
6e93a33033 build: clean up src artifacts when green 2024-06-17 23:05:06 -07:00
3 changed files with 44 additions and 0 deletions

View File

@@ -95,3 +95,11 @@ jobs:
test-container: ${{ inputs.test-container }}
gn-build-type: ${{ inputs.gn-build-type }}
secrets: inherit
clean:
uses: ./.github/workflows/pipeline-segment-electron-clean.yml
needs:
- test
- nn-test
with:
target-arch: ${{ inputs.target-arch }}
target-platform: ${{ inputs.target-platform }}

View File

@@ -90,3 +90,9 @@ jobs:
test-runs-on: ${{ inputs.test-runs-on }}
test-container: ${{ inputs.test-container }}
secrets: inherit
clean:
uses: ./.github/workflows/pipeline-segment-electron-clean.yml
needs: test
with:
target-arch: ${{ inputs.target-arch }}
target-platform: ${{ inputs.target-platform }}

View File

@@ -0,0 +1,30 @@
name: Pipeline Segment - Electron Clean
on:
workflow_call:
inputs:
target-platform:
type: string
description: 'Platform to run on, can be macos or linux'
required: true
target-arch:
type: string
description: 'Arch to build for, can be x64, arm64 or arm'
required: true
concurrency:
group: electron-clean-${{ inputs.target-platform }}-${{ inputs.target-arch }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' && !endsWith(github.ref, '-x-y') }}
jobs:
clean:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
build-type: ${{ inputs.target-platform == 'macos' && fromJSON('["darwin","mas"]') || fromJSON('["linux"]') }}
steps:
- uses: geekyeggo/delete-artifact@v5
with:
name: src_artifacts_${{ matrix.build-type }}_${{ inputs.target-arch }}
failOnError: false