This repository has been archived by the owner on Jan 4, 2025. It is now read-only.
Build and Publish Rust Binary #2
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 and Publish Rust Binary | |
on: | |
release: | |
types: [created] | |
jobs: | |
build-linux: | |
name: Build Linux Binary | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Rust | |
uses: dtolnay/rust-toolchain@stable | |
- name: Install dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y libgtk-3-dev | |
- name: Build | |
run: cargo build --release | |
- name: Prepare binary | |
run: | | |
cd target/release | |
tar czvf ren-browser-linux-x86_64.tar.gz ren-browser | |
- name: Upload binary to release | |
env: | |
GITHUB_TOKEN: ${{ github.token }} | |
run: | | |
gh release upload "${{ github.event.release.tag_name }}" \ | |
target/release/ren-browser-linux-x86_64.tar.gz \ | |
--clobber |