Skip to content

Add workflow for publishing llvm-firtool #3

Add workflow for publishing llvm-firtool

Add workflow for publishing llvm-firtool #3

name: Publish LLVM Firtool
on:
# TODO switch to workflow_dispatch
workflow_call:
inputs:
version:
description: 'The version of firtool and llvm-firtool to publish'
required: true
type: string
snapshot:
description: 'Should the version of llvm-resolver be a SNAPSHOT'
default: 'true'
required: true
type: string
jobs:
test:
- name: Run Tests

Check failure on line 19 in .github/workflows/publish-llvm-firtool.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/publish-llvm-firtool.yml

Invalid workflow file

You have an error in your yaml syntax on line 19
uses: ./.github/workflows/test.yml
with:
version: ${{ inputs.version }}
snapshot: ${{ inputs.snapshot }}
publish:
name: Publish LLVM Firtool
runs-on: ubuntu-20.04
needs: test
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Scala and Coursier
uses: coursier/setup-action@v1
with:
jvm: adopt:11
- name: Check if already published
# TODO skip if snapshot
run: |
if cs fetch org.chipsalliance:llvm-firtool:${{ inputs.version }} ; then
echo "llvm-firtool version ${{ inputs.version }} has already been published!" >> $GITHUB_STEP_SUMMARY
exit 1
else
exit 0
fi
- name: Publish
shell: bash
run: |
./mill resolve _
# TODO do publish