updated github actions workflow

This commit is contained in:
Vomitblood 2024-08-08 01:55:52 +08:00
parent 3e3fa2124f
commit 7fa1c91a48
2 changed files with 5 additions and 31 deletions

View file

@ -15,8 +15,11 @@ jobs:
image: ubuntu:22.04 image: ubuntu:22.04
steps: steps:
- name: Install Git - name: Update APT
run: apt update && apt install -y git run: apt update
- name: Install Git and dependencies for Tauri
run: apt install -y git libwebkit2gtk-4.0-dev build-essential curl wget file libssl-dev libgtk-3-dev libayatana-appindicator3-dev librsvg2-dev
- name: Checkout Repository - name: Checkout Repository
uses: actions/checkout@v4 uses: actions/checkout@v4
@ -26,12 +29,6 @@ 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
run: apt update && apt upgrade -y
- 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: | run: |
install -dm 755 /etc/apt/keyrings install -dm 755 /etc/apt/keyrings

View file

@ -1,23 +0,0 @@
name: Testing
on:
push:
branches:
- "*"
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
container:
image: ubuntu:22.04
steps:
- 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"
cargo --version