1.0.0-rc.10 #90
Workflow file for this run
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
# This file is used to build the preview release binaries for the Tauri GUI with CloudNebula integration | |
name: "Publish GUI release to CloudNebula" | |
on: | |
release: | |
types: [created] | |
env: | |
# We build on an older version to support older glib versions | |
UBUNTU: "ubuntu-24.04" | |
MACOS_ARM: "macos-latest" | |
MACOS_INTEL: "macos-13" | |
WINDOWS: "windows-latest" | |
CN_APPLICATION: "unstoppableswap/unstoppableswap-gui-rs" | |
jobs: | |
draft-cb-release: | |
# Do not publish preview releases to CloudNebula | |
if: ${{ !contains(github.ref_name, 'preview') }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Create Draft Release | |
uses: crabnebula-dev/cloud-release@v0 | |
with: | |
command: release draft ${{ env.CN_APPLICATION }} --framework tauri | |
api-key: ${{ secrets.CN_API_KEY }} | |
build: | |
needs: draft-cb-release | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- platform: "macos-latest" # For Arm-based Macs (M1 and above) | |
args: "--target aarch64-apple-darwin" | |
- platform: "macos-13" # For Intel-based Macs | |
args: "--target x86_64-apple-darwin" | |
- platform: "ubuntu-24.04" | |
args: "" | |
- platform: "windows-latest" | |
args: "" | |
runs-on: ${{ matrix.platform }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 'lts/*' | |
- uses: Swatinem/[email protected] | |
- name: Install Rust Stable | |
uses: dtolnay/[email protected] | |
with: | |
targets: ${{ matrix.platform == 'macos-latest' && 'aarch64-apple-darwin,x86_64-apple-darwin' || '' }} | |
- name: install dependencies (ubuntu only) | |
if: matrix.platform == 'ubuntu-24.04' # This must match the platform value defined above. | |
run: | | |
sudo apt update; | |
sudo apt install -y \ | |
build-essential \ | |
curl \ | |
wget \ | |
file \ | |
libssl-dev \ | |
libgtk-3-dev \ | |
libappindicator3-dev \ | |
librsvg2-dev; | |
sudo apt install -y \ | |
libwebkit2gtk-4.1-0=2.44.0-2 \ | |
libwebkit2gtk-4.1-dev=2.44.0-2 \ | |
libjavascriptcoregtk-4.1-0=2.44.0-2 \ | |
libjavascriptcoregtk-4.1-dev=2.44.0-2 \ | |
gir1.2-javascriptcoregtk-4.1=2.44.0-2 \ | |
gir1.2-webkit2-4.1=2.44.0-2; | |
- name: Install Frontend Dependencies | |
working-directory: src-gui | |
run: yarn install | |
- name: install tauri-cli globally | |
uses: taiki-e/cache-cargo-install-action@v2 | |
with: | |
tool: [email protected] | |
- name: install typeshare-cli globally | |
uses: taiki-e/cache-cargo-install-action@v2 | |
with: | |
tool: typeshare-cli | |
- name: install dprint globally | |
uses: taiki-e/cache-cargo-install-action@v2 | |
with: | |
tool: [email protected] | |
- name: Build Tauri App | |
env: | |
GITHUB_TOKEN: ${{ secrets.BOTTY_GITHUB_TOKEN }} | |
APPLE_CERTIFICATE: ${{ secrets.APPLE_CERTIFICATE }} | |
APPLE_CERTIFICATE_PASSWORD: ${{ secrets.APPLE_CERTIFICATE_PASSWORD }} | |
APPLE_SIGNING_IDENTITY: ${{ secrets.APPLE_SIGNING_IDENTITY }} | |
APPLE_ID: ${{ secrets.APPLE_ID }} | |
APPLE_PASSWORD: ${{ secrets.APPLE_PASSWORD }} | |
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }} | |
TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }} | |
TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY_PASSWORD }} | |
run: | | |
cargo tauri build ${{ matrix.args }} | |
- name: Upload Assets | |
uses: crabnebula-dev/cloud-release@v0 | |
with: | |
command: release upload ${{ env.CN_APPLICATION }} --framework tauri | |
api-key: ${{ secrets.CN_API_KEY }} | |
publish: | |
needs: build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Publish Release | |
uses: crabnebula-dev/cloud-release@v0 | |
with: | |
command: release publish ${{ env.CN_APPLICATION }} --framework tauri | |
api-key: ${{ secrets.CN_API_KEY }} |