mirror of
https://github.com/Vomitblood/stort.git
synced 2024-11-30 07:41:14 +08:00
updated github actions workflow
This commit is contained in:
parent
3e3fa2124f
commit
7fa1c91a48
13
.github/workflows/build.yml
vendored
13
.github/workflows/build.yml
vendored
|
@ -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
|
||||||
|
|
23
.github/workflows/testing.yml
vendored
23
.github/workflows/testing.yml
vendored
|
@ -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
|
|
Loading…
Reference in a new issue