updated github actions workflow

This commit is contained in:
Vomitblood 2024-08-07 15:25:18 +08:00
parent e42a4b764c
commit 3965f62d6e
2 changed files with 9 additions and 1 deletions

View file

@ -35,4 +35,4 @@ jobs:
- name: Build - name: Build
run: | run: |
mise settings set experimental true mise settings set experimental true
mise exec bun --command "bun run tauri build" mise exec bun --command \"bun run tauri build\"

View file

@ -15,15 +15,23 @@ docker run --rm -it \
-v "$HOST_PROJECT_DIR":$CONTAINER_PROJECT_DIR \ -v "$HOST_PROJECT_DIR":$CONTAINER_PROJECT_DIR \
$IMAGE_NAME \ $IMAGE_NAME \
/bin/bash -c " /bin/bash -c "
# update packages
apt update && apt upgrade -y && \ apt update && apt upgrade -y && \
# install tauri dependencies
apt install -y cargo libwebkit2gtk-4.0-dev build-essential curl wget file libssl-dev libgtk-3-dev libayatana-appindicator3-dev librsvg2-dev && \ apt install -y cargo libwebkit2gtk-4.0-dev build-essential curl wget file libssl-dev libgtk-3-dev libayatana-appindicator3-dev librsvg2-dev && \
# install mise
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 && \
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 && \ 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 update && \
# install mise tools
apt install -y mise && \ apt install -y mise && \
# build
cd $CONTAINER_PROJECT_DIR && \ cd $CONTAINER_PROJECT_DIR && \
mise install && \ mise install && \
mise settings set experimental true && \ mise settings set experimental true && \