This repository has been archived by the owner on Jan 16, 2024. It is now read-only.
Create build.yml #1
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: Main | |
on: | |
push: | |
tags: | |
- "v*.*.*" | |
branches: [main] | |
permissions: | |
contents: write | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install depend | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y libssl3 pkg-config | |
- uses: dtolnay/rust-toolchain@stable | |
- name: Build binary | |
run: | | |
SQLX_OFFLINE=true cargo build -r | |
mv target/release/twilight-globalchat globalchat.bin | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
files: globalchat.bin |