Skip to content

Commit

Permalink
wip: testing
Browse files Browse the repository at this point in the history
  • Loading branch information
jmgilman committed Oct 11, 2024
1 parent 1e1c21c commit 64a1891
Show file tree
Hide file tree
Showing 2 changed files with 67 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,16 @@ jobs:
secrets:
earthly_token: ${{ secrets.earthly_token }}

release_new:
uses: input-output-hk/catalyst-forge/.github/workflows/release_new.yml@adds-release-cm
needs: [discover, check, build, test]
if: (fromJson(needs.discover.outputs.releases)[0] != null)
with:
releases: ${{ needs.discover.outputs.releases }}
forge_version: ${{ inputs.forge_version }}
secrets:
earthly_token: ${{ secrets.earthly_token }}

final:
needs: [check, build, package, test, publish, release]
if: (!failure() && !cancelled())
Expand Down
57 changes: 57 additions & 0 deletions .github/workflows/release_new.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
on:
workflow_call:
inputs:
releases:
description: |
A JSON list of releases to run
required: true
type: string
forge_version:
description: |
The version of the forge CLI to install (use 'local' for testing)
required: true
type: string
secrets:
earthly_token:
description: Optional Earthly token used to login to Earthly cloud during local builds of Forge CLI
required: false
env:
OUTPUT: ${{ github.workspace }}/output

jobs:
run:
name: Release (${{ matrix.release.name}}) - ${{ matrix.release.project }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
release: ${{ fromJson(inputs.releases) }}
steps:
- uses: actions/checkout@v4
- name: Install Forge
uses: input-output-hk/catalyst-forge/actions/install@adds-release-cm
if: ${{ inputs.forge_version != 'local' }}
with:
version: ${{ inputs.forge_version }}
- name: Install Local Forge
uses: input-output-hk/catalyst-forge/actions/install-local@adds-release-cm
if: ${{ inputs.forge_version == 'local' }}
with:
earthly_token: ${{ secrets.earthly_token }}
- name: Check forge version
id: local
run: |
forge version
if [[ "${{ inputs.forge_version }}" == "local" ]]; then
echo "skip=true" >> $GITHUB_OUTPUT
else
echo "skip=false" >> $GITHUB_OUTPUT
fi
- name: Setup CI
uses: input-output-hk/catalyst-forge/actions/setup@adds-release-cm
with:
skip_earthly: ${{ steps.local.outputs.skip }}
- name: Run
run: |
forge -vv release ${{ matrix.release.project }} ${{ matrix.release.name }}

0 comments on commit 64a1891

Please sign in to comment.