Compare commits

...

20 commits

Author SHA1 Message Date
Vomitblood 4c6e069afa updated github actions workflow 2024-08-07 17:44:32 +08:00
Vomitblood 760f11d959 updated github actions workflow 2024-08-07 17:42:43 +08:00
Vomitblood e5e3f1c621 updated github actions workflow 2024-08-07 17:39:19 +08:00
Vomitblood 337209a6ab updated github actions workflow 2024-08-07 17:37:36 +08:00
Vomitblood 30ebb72e4b updated github actions workflow 2024-08-07 17:35:51 +08:00
Vomitblood f0147e6e08 updated github actions workflow 2024-08-07 17:34:45 +08:00
Vomitblood 6418821e95 updated github actions workflow 2024-08-07 17:32:33 +08:00
Vomitblood 48d2794623 updated github actions workflow 2024-08-07 17:31:23 +08:00
Vomitblood 3fca34aaed updated github actions workflow 2024-08-07 17:27:23 +08:00
Vomitblood bc24db1651 updated github actions workflow 2024-08-07 17:26:48 +08:00
Vomitblood 86a1d0f3c3 updated github actions workflow 2024-08-07 17:25:59 +08:00
Vomitblood 2c23a9a95b updated github actions workflow 2024-08-07 17:06:59 +08:00
Vomitblood 4c63e77b07 updated github actions workflow 2024-08-07 16:28:18 +08:00
Vomitblood fffcae4581 updated github actions workflow 2024-08-07 16:27:53 +08:00
Vomitblood 0edef1236b updated github actions workflow 2024-08-07 16:12:20 +08:00
Vomitblood fa00220612 updated github actions workflow 2024-08-07 15:52:13 +08:00
Vomitblood d654276d33 updated github actions workflow 2024-08-07 15:36:05 +08:00
Vomitblood e80356ce5b updated github actions workflow 2024-08-07 15:28:03 +08:00
Vomitblood 3965f62d6e updated github actions workflow 2024-08-07 15:25:31 +08:00
Vomitblood e42a4b764c added back github actions workflow 2024-08-07 15:23:09 +08:00
2 changed files with 95 additions and 4 deletions

83
.github/workflows/build-validation.yml vendored Normal file
View file

@ -0,0 +1,83 @@
name: Test Build Frontend
on:
push:
branches:
- "*"
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
container:
image: ubuntu:22.04
steps:
- name: Install git
run: apt update && apt install -y git
- name: Checkout Repository
uses: actions/checkout@v2
- name: Get Variables
run: |
git config --global --add safe.directory /__w/stort/stort
echo "TAG_NAME=commit-$(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 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
# mise settings set experimental true
# - name: Install bun packages
# run: mise exec bun --command 'bun install'
# - name: Build Tauri
# run: mise exec bun --command 'bun run tauri build'
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ env.TAG_NAME }}
release_name: ${{ env.TAG_NAME }}
draft: false
prerelease: false
# - name: Upload whatsip artifact to release (Windows)
# uses: actions/upload-release-asset@v1
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# upload_url: ${{ steps.create_release.outputs.upload_url }}
# asset_path: ./src-tauri/target/release/bundle/appimage/*.AppImage
# asset_name: stort-appimage.zip
# asset_content_type: application/octet-stream
- name: Upload build to release
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./public/images/background.jpg
asset_name: background.zip
asset_content_type: application/octet-stream

View file

@ -15,15 +15,23 @@ 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 && \
# update packages
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 && \
# install mise
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 && \
# install mise tools
apt install -y mise && \
# build
cd $CONTAINER_PROJECT_DIR && \
mise install && \
mise settings set experimental true && \