Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .github/workflows/build_release.yml
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
30 changes: 19 additions & 11 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
name: Pull request
name: Pull Request

on:
pull_request:
types: [opened, reopened, synchronize]
push:
branches: [main]

jobs:
soundness:
Expand All @@ -28,16 +30,22 @@ jobs:
linux_pre_build_command: ./scripts/prep-gh-action.sh && ./scripts/install-libarchive.sh
enable_windows_checks: false

releasebuild:
name: Release Build
uses: swiftlang/github-workflows/.github/workflows/swift_package_test.yml@main
with:
linux_os_versions: "[\"rhel-ubi9\"]"
# We only care about the current stable release, because that's where we make our swiftly releases
linux_exclude_swift_versions: "[{\"swift_version\": \"nightly-main\"},{\"swift_version\": \"nightly-6.0\"},{\"swift_version\": \"5.8\"},{\"swift_version\": \"5.9\"},{\"swift_version\": \"5.10\"}]"
linux_pre_build_command: ./scripts/prep-gh-action.sh
linux_build_command: swift run build-swiftly-release --skip 0.4.0
enable_windows_checks: false
releasebuildcheck:
name: Release Build Check
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 --skip "999.0.0"
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
path: .build/release/swiftly-*.tar.gz
if-no-files-found: error
retention-days: 1

formatcheck:
name: Format Check
Expand Down