Skip to content

Commit

Permalink
ci: add "target" to allow building with different config
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlj95 committed Oct 1, 2023
1 parent 9df227a commit 6a6d665
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ jobs:
contents: write
with:
artifact-name: build
target: build-pull-request
test:
name: Test
uses: ./.github/workflows/reusable-test.yml
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/reusable-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ on:
type: string
required: false
default: ''
target:
description: Makefile target to run when building
type: string
required: false
default: build

# Needed for prebuild step: dry run a release.
# Git permissions are checked even in dry run mode 🙃
Expand Down Expand Up @@ -39,7 +44,7 @@ jobs:
restore-keys: |
${{ env.cache-name }}
- name: Build and prerender app
run: cd .ci && make build
run: cd .ci && make ${{ inputs.target }}
- name: Upload built app
if: ${{ inputs.artifact-name != '' }}
uses: actions/upload-artifact@v3
Expand Down

0 comments on commit 6a6d665

Please sign in to comment.