updated github actions workflow

This commit is contained in:
Vomitblood 2024-08-08 01:47:09 +08:00
parent 02793f0851
commit 310dee7050

View file

@ -15,22 +15,14 @@ jobs:
image: ubuntu:22.04
steps:
- name: Testing
run: echo $SHELL
- name: Install Rust
run: |
apt update && apt install -y curl
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
. "$HOME/.cargo/env"
echo "source $HOME/.cargo/env" >> $GITHUB_ENV
shell: bash
- name: Testing
run: |
cargo --help
cargo --version
- name: Install git
- name: Install Git
run: apt update && apt install -y git
- name: Checkout Repository
@ -41,13 +33,13 @@ jobs:
git config --global --add safe.directory /__w/stort/stort
echo "TAG_NAME=commit-$(date +%Y%m%d)-$(git rev-parse --short HEAD)" >> $GITHUB_ENV
- name: Update packages
- name: Update Packages
run: apt update && apt upgrade -y
- name: Install dependencies for Tauri
- name: Install Dependencies for Tauri
run: apt install -y libwebkit2gtk-4.0-dev build-essential curl wget file libssl-dev libgtk-3-dev libayatana-appindicator3-dev librsvg2-dev
- name: Install mise
- name: Install Mise
run: |
install -dm 755 /etc/apt/keyrings
wget -qO - https://mise.jdx.dev/gpg-key.pub | gpg --dearmor | tee /etc/apt/keyrings/mise-archive-keyring.gpg 1> /dev/null
@ -55,12 +47,12 @@ jobs:
apt update
apt install -y mise
- name: Install mise tools
- name: Install Mise Tools
run: |
mise install
mise settings set experimental true
- name: Install bun packages
- name: Install Bun Packages
run: mise exec bun --command 'bun install'
- name: Build Tauri
@ -77,7 +69,7 @@ jobs:
draft: false
prerelease: false
- name: Upload build to release
- name: Upload Build to Release
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}