Build Release #5
This file contains hidden or 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
name: Build Release | |
on: | |
workflow_dispatch: | |
inputs: | |
version: | |
description: "Version of swiftly to build release artifacts" | |
required: true | |
type: string | |
default: "1.1.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" | |
env: | |
SWIFTLY_BOOTSTRAP_VERSION: 1.0.0 | |
jobs: | |
buildrelease-linux: | |
name: Build Release / Linux x86_64 | |
runs-on: ubuntu-latest | |
container: | |
image: "redhat/ubi9" | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Prepare the action | |
run: ./scripts/prep-gh-action.sh --install-swiftly | |
- name: Build Release Artifact | |
run: swift run build-swiftly-release --use-rhel-ubi9 ${{ inputs.skip }} ${{ inputs.version }} | |
- name: Upload Release Artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: swiftly-release-x86_64 | |
path: .build/release/swiftly-*.tar.gz | |
if-no-files-found: error | |
- name: Build Documentation Artifacts | |
run: swift package --allow-writing-to-directory .build/docs generate-documentation --target SwiftlyDocs --output-path .build/docs | |
- name: Upload Documentation Artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: swiftly-docs | |
path: .build/docs/** | |
if-no-files-found: error | |
buildrelease-macos: | |
name: Build Release / macOS | |
runs-on: [self-hosted, macos, sequoia, ARM64] | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Prepare the action | |
run: ./scripts/prep-gh-action.sh --install-swiftly | |
- name: Build Release Artifact | |
run: swift run build-swiftly-release ${{ inputs.skip }} ${{ inputs.version }} | |
- name: Upload Release Artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: swiftly-release-x86_64 | |
path: .build/release/swiftly-*.tar.gz | |
if-no-files-found: error |