Skip to content

Commit

Permalink
Update swift.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ezefranca authored Aug 26, 2024
1 parent 509e81c commit 8b88e7f
Showing 1 changed file with 28 additions and 3 deletions.
31 changes: 28 additions & 3 deletions .github/workflows/swift.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Swift
name: Swift Build and Release

on:
push:
Expand All @@ -13,7 +13,32 @@ jobs:

steps:
- uses: actions/checkout@v4

- name: Install Dependencies
run: swift package resolve

- name: Build
run: swift build -v
- name: Run tests
run: swift test -v

release:

runs-on: macos-latest
needs: build

steps:
- uses: actions/checkout@v4

- name: Install Dependencies
run: swift package resolve

- name: Build Release Binary
run: swift build -c release -v

- name: Archive Release
run: tar -czvf xcode-frameworks.tar.gz -C .build/release xcode-frameworks

- name: Upload Release Artifact
uses: actions/upload-artifact@v2
with:
name: xcode-frameworks
path: xcode-frameworks.tar.gz

0 comments on commit 8b88e7f

Please sign in to comment.