Skip to content

Commit

Permalink
πŸ‘·β€β™‚οΈ Create deploy job
Browse files Browse the repository at this point in the history
  • Loading branch information
olejnjak committed May 1, 2024
1 parent b0c6d73 commit 1e986a6
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Deploy

on:
push:
tags:
- "*.*.*"

jobs:
deploy:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- uses: AckeeCZ/load-xcode-version@v1
- uses: actions/cache@v4
with:
path: .build
key: ${{ runner.os }}-spm-${{ hashFiles('**/Package.resolved') }}
restore-keys: |
${{ runner.os }}-spm-
- name: Build ARM64
run: |
swift build -c release --arch arm64
mv `swift build -c release --arch arm64 --show-bin-path`/torino torino-arm64
- name: Build AMD64
run: |
swift build -c release --arch x86_64
mv `swift build -c release --arch x86_64 --show-bin-path`/torino torino-x86_64
- name: Release
uses: softprops/action-gh-release@v2
with:
generate_release_notes: true
files: |
torino-arm64
torino-x86_64

0 comments on commit 1e986a6

Please sign in to comment.