-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add post-merge CI and build release workflows (#185)
After squashing and mergin a commit on top of what's on the main branch there can be merge issues. Add a post-merge (ie. push) trigger for the same workflows that are used for pull requests to help flag merge issues. For these workflows, it will be useful to upload the release artifacts in case someone would like to manually test it. In the future there is also a possibility of larger e2e test suites that could run on fresh Linux containers without existing swift toolchains. Add a new workflow to produce release artifacts for Linux on a manual workflow dispatch either from the GitHub UI, or via the REST interface.
- Loading branch information
1 parent
9748352
commit 5d8ac14
Showing
2 changed files
with
51 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: Build Release | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
version: | ||
description: "Version of swiftly to build release artifacts" | ||
required: true | ||
type: string | ||
default: "0.3.0" | ||
skip: | ||
description: "Perform release checks, such as the git tag, and swift version, or '--skip' to skip that." | ||
required: true | ||
type: string | ||
default: "--skip" | ||
|
||
jobs: | ||
buildrelease: | ||
name: Build Release | ||
runs-on: ubuntu-latest | ||
container: | ||
image: "swift:6.0-rhel-ubi9" | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
- name: Build Artifact | ||
run: swift run build-swiftly-release ${{ inputs.skip }} ${{ inputs.version }} | ||
- name: Upload Artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
path: .build/release/swiftly-*.tar.gz | ||
if-no-files-found: error |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters