diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..b1268cf --- /dev/null +++ b/.github/workflows/deploy.yml @@ -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 \ No newline at end of file