mirror of
https://github.com/Vomitblood/stort.git
synced 2025-03-14 02:41:01 +08:00
updated github actions workflow
This commit is contained in:
parent
02793f0851
commit
310dee7050
24
.github/workflows/build.yml
vendored
24
.github/workflows/build.yml
vendored
|
@ -15,22 +15,14 @@ jobs:
|
||||||
image: ubuntu:22.04
|
image: ubuntu:22.04
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Testing
|
|
||||||
run: echo $SHELL
|
|
||||||
|
|
||||||
- name: Install Rust
|
- name: Install Rust
|
||||||
run: |
|
run: |
|
||||||
apt update && apt install -y curl
|
apt update && apt install -y curl
|
||||||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
|
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
|
shell: bash
|
||||||
|
|
||||||
- name: Testing
|
- name: Install Git
|
||||||
run: |
|
|
||||||
cargo --help
|
|
||||||
cargo --version
|
|
||||||
|
|
||||||
- name: Install git
|
|
||||||
run: apt update && apt install -y git
|
run: apt update && apt install -y git
|
||||||
|
|
||||||
- name: Checkout Repository
|
- name: Checkout Repository
|
||||||
|
@ -41,13 +33,13 @@ jobs:
|
||||||
git config --global --add safe.directory /__w/stort/stort
|
git config --global --add safe.directory /__w/stort/stort
|
||||||
echo "TAG_NAME=commit-$(date +%Y%m%d)-$(git rev-parse --short HEAD)" >> $GITHUB_ENV
|
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
|
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
|
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: |
|
run: |
|
||||||
install -dm 755 /etc/apt/keyrings
|
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
|
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 update
|
||||||
apt install -y mise
|
apt install -y mise
|
||||||
|
|
||||||
- name: Install mise tools
|
- name: Install Mise Tools
|
||||||
run: |
|
run: |
|
||||||
mise install
|
mise install
|
||||||
mise settings set experimental true
|
mise settings set experimental true
|
||||||
|
|
||||||
- name: Install bun packages
|
- name: Install Bun Packages
|
||||||
run: mise exec bun --command 'bun install'
|
run: mise exec bun --command 'bun install'
|
||||||
|
|
||||||
- name: Build Tauri
|
- name: Build Tauri
|
||||||
|
@ -77,7 +69,7 @@ jobs:
|
||||||
draft: false
|
draft: false
|
||||||
prerelease: false
|
prerelease: false
|
||||||
|
|
||||||
- name: Upload build to release
|
- name: Upload Build to Release
|
||||||
uses: actions/upload-release-asset@v1
|
uses: actions/upload-release-asset@v1
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
Loading…
Reference in a new issue