update ci #4
Workflow file for this run
This file contains hidden or 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
| name: Build iOS Library | |
| on: push | |
| jobs: | |
| build: | |
| name: Build for aarch64-apple-ios | |
| runs-on: [self-hosted, macOS, ARM64] | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v3 | |
| - name: Build for aarch64-apple-ios | |
| run: cargo build --target aarch64-apple-ios --lib --release | |
| - name: Upload artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: chums-proxy | |
| path: target/aarch64-apple-ios/release/libchums_proxy.* | |
| release: | |
| name: Create GitHub Release | |
| runs-on: [self-hosted, macOS, ARM64] | |
| needs: build | |
| steps: | |
| - name: Download artifact | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: chums-proxy | |
| path: artifacts | |
| - name: Generate release name | |
| id: release_name | |
| run: | | |
| echo "release_name=Release iOS $(date +'%Y-%m-%d')" >> "$GITHUB_OUTPUT" | |
| - name: Create GitHub Release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| name: ${{ steps.release_name.outputs.release_name }} | |
| files: artifacts/* | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |