mirror of
https://github.com/Vomitblood/stort.git
synced 2024-11-26 13:55:27 +08:00
added back github actions workflow
This commit is contained in:
parent
a964264134
commit
e42a4b764c
38
.github/workflows/build-validation.yml
vendored
Normal file
38
.github/workflows/build-validation.yml
vendored
Normal file
|
@ -0,0 +1,38 @@
|
|||
name: Test Build Frontend
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "*"
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: ubuntu:22.04
|
||||
|
||||
steps:
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Update packages
|
||||
run: apt update && apt upgrade -y
|
||||
|
||||
- name: Install dependencies for Tauri
|
||||
run: apt install -y cargo libwebkit2gtk-4.0-dev build-essential curl wget file libssl-dev libgtk-3-dev libayatana-appindicator3-dev librsvg2-dev
|
||||
|
||||
- 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
|
||||
echo 'deb [signed-by=/etc/apt/keyrings/mise-archive-keyring.gpg arch=amd64] https://mise.jdx.dev/deb stable main' | tee /etc/apt/sources.list.d/mise.list
|
||||
apt update
|
||||
apt install -y mise
|
||||
|
||||
- name: Install mise tools
|
||||
run: mise install
|
||||
|
||||
- name: Build
|
||||
run: |
|
||||
mise settings set experimental true
|
||||
mise exec bun --command "bun run tauri build"
|
8
build.sh
8
build.sh
|
@ -15,14 +15,14 @@ docker run --rm -it \
|
|||
-v "$HOST_PROJECT_DIR":$CONTAINER_PROJECT_DIR \
|
||||
$IMAGE_NAME \
|
||||
/bin/bash -c "
|
||||
apt-get update && apt-get upgrade -y && \
|
||||
apt-get install -y cargo libwebkit2gtk-4.0-dev build-essential curl wget file libssl-dev libgtk-3-dev libayatana-appindicator3-dev librsvg2-dev && \
|
||||
apt update && apt upgrade -y && \
|
||||
apt install -y cargo libwebkit2gtk-4.0-dev build-essential curl wget file libssl-dev libgtk-3-dev libayatana-appindicator3-dev librsvg2-dev && \
|
||||
|
||||
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 && \
|
||||
echo 'deb [signed-by=/etc/apt/keyrings/mise-archive-keyring.gpg arch=amd64] https://mise.jdx.dev/deb stable main' | tee /etc/apt/sources.list.d/mise.list && \
|
||||
apt-get update && \
|
||||
apt-get install -y mise && \
|
||||
apt update && \
|
||||
apt install -y mise && \
|
||||
|
||||
cd $CONTAINER_PROJECT_DIR && \
|
||||
mise install && \
|
||||
|
|
Loading…
Reference in a new issue