chore(test): test macos ci (#843) #16
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
name: Build Linux Release | |
on: | |
push: | |
tags: | |
- "*" | |
permissions: | |
contents: write | |
jobs: | |
build-linux-release: | |
runs-on: ubuntu-latest | |
env: | |
RELEASE_VERSION: ${{ github.ref_name }} # Set the release version from the tag | |
steps: | |
- uses: actions/[email protected] | |
- name: Setup Node | |
uses: actions/[email protected] | |
with: | |
node-version: lts/* | |
- name: Install Rust Stable | |
uses: dtolnay/rust-toolchain@stable | |
- name: Install Ubuntu Dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf | |
- name: Install Frontend Dependencies | |
run: npm install | |
- name: Build Tauri App | |
uses: tauri-apps/[email protected] | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Rename and Calculate Hashes for Release | |
run: | | |
# Rename the .deb file to include the release version | |
DEB_FILE=$(find src-tauri/target/release/bundle/deb -name "*.deb" | head -n 1) | |
NEW_DEB_FILE="src-tauri/target/release/bundle/deb/Uplink_${{ env.RELEASE_VERSION }}.deb" | |
mv "$DEB_FILE" "$NEW_DEB_FILE" | |
# Calculate SHA256 hash for the renamed .deb file | |
sha256sum "$NEW_DEB_FILE" > src-tauri/target/release/bundle/deb/SHA256SUM | |
- name: Upload Ubuntu Installer | |
uses: actions/[email protected] | |
with: | |
name: build-ubuntu | |
path: | | |
src-tauri/target/release/bundle/deb/Uplink_${{ env.RELEASE_VERSION }}.deb | |
src-tauri/target/release/bundle/deb/SHA256SUM | |
retention-days: 5 | |
- name: GitHub Release Linux | |
uses: softprops/action-gh-release@v2 | |
with: | |
files: | | |
src-tauri/target/release/bundle/deb/Uplink_${{ env.RELEASE_VERSION }}.deb | |
src-tauri/target/release/bundle/deb/SHA256SUM |