-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from giginet/support-artifactbundle-action
Support Artifact Bundle
- Loading branch information
Showing
3 changed files
with
45 additions
and
0 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,35 @@ | ||
on: | ||
release: | ||
types: [created] | ||
|
||
name: Upload Artifact Bundle to Release | ||
env: | ||
DEVELOPER_DIR: "/Applications/Xcode_15.3.app/Contents/Developer" | ||
SWIFT_TESTING_REVOLUTIONARY_DEVELOPMENT: 1 | ||
|
||
jobs: | ||
release: | ||
name: Build and Upload Artifact Bundle | ||
runs-on: macos-14 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Resolve Dependencies | ||
run: | | ||
swift package resolve | ||
- name: Build Binary | ||
run: | | ||
swift build --disable-sandbox -c release --arch arm64 --arch x86_64 --target swift-testing-revolutionary | ||
- name: Get Current Tag | ||
run: echo "TAG_NAME=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV | ||
- name: Make Artifact Bundle | ||
run: | | ||
swift package --allow-writing-to-package-directory generate-artifact-bundle \ | ||
--package-version ${{ env.TAG_NAME }} \ | ||
--executable-name swift-testing-revolutionary \ | ||
--build-config release \ | ||
--build-folder .build | ||
- name: Upload Artifact Bundle to Release | ||
run: | | ||
gh release upload ${{ env.TAG_NAME }} ./swift-testing-revolutionary.artifactbundle.zip | ||
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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 |
---|---|---|
|
@@ -7,3 +7,4 @@ DerivedData/ | |
.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata | ||
.netrc | ||
.swiftpm | ||
*.artifactbundle.zip |
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