Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 52298d1d46 | |||
| 7fc5d66b8c | |||
| 7a6b4f961a | |||
| 71ee9c59c4 |
@@ -10,14 +10,21 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-node@v4
|
- uses: actions/setup-node@v4
|
||||||
|
with: { node-version: 20 }
|
||||||
|
- name: Cache npm
|
||||||
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
node-version: 20
|
path: ~/.npm
|
||||||
cache: 'npm'
|
key: ${{ runner.os }}-npm-${{ hashFiles('web/package-lock.json') }}
|
||||||
cache-dependency-path: 'web/package-lock.json'
|
|
||||||
- uses: dtolnay/rust-toolchain@stable
|
- uses: dtolnay/rust-toolchain@stable
|
||||||
- uses: Swatinem/rust-cache@v2
|
- name: Cache Rust target and registry
|
||||||
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
workspaces: 'web/src-tauri'
|
path: |
|
||||||
|
~/.cargo/registry
|
||||||
|
~/.cargo/git
|
||||||
|
web/src-tauri/target
|
||||||
|
key: ${{ runner.os }}-cargo-${{ hashFiles('web/src-tauri/Cargo.lock') }}
|
||||||
- name: Install system deps
|
- name: Install system deps
|
||||||
run: sudo apt-get update && sudo apt-get install -y libwebkit2gtk-4.1-dev libgtk-3-dev libappindicator3-dev librsvg2-dev patchelf rpm
|
run: sudo apt-get update && sudo apt-get install -y libwebkit2gtk-4.1-dev libgtk-3-dev libappindicator3-dev librsvg2-dev patchelf rpm
|
||||||
- name: Build frontend
|
- name: Build frontend
|
||||||
@@ -40,20 +47,27 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-node@v4
|
- uses: actions/setup-node@v4
|
||||||
|
with: { node-version: 20 }
|
||||||
|
- name: Cache npm
|
||||||
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
node-version: 20
|
path: ~/.npm
|
||||||
cache: 'npm'
|
key: ${{ runner.os }}-npm-${{ hashFiles('web/package-lock.json') }}
|
||||||
cache-dependency-path: 'web/package-lock.json'
|
|
||||||
- name: Install Rust
|
- name: Install Rust
|
||||||
run: |
|
run: |
|
||||||
curl.exe -sLO https://win.rustup.rs/x86_64/rustup-init.exe
|
curl.exe -sLo rustup-init.exe https://win.rustup.rs/x86_64
|
||||||
rustup-init.exe -y --default-toolchain stable --profile minimal
|
rustup-init.exe -y --default-toolchain stable --profile minimal
|
||||||
set PATH=%USERPROFILE%\.cargo\bin;%PATH%
|
set PATH=%USERPROFILE%\.cargo\bin;%PATH%
|
||||||
rustc --version
|
rustc --version
|
||||||
shell: cmd
|
shell: cmd
|
||||||
- uses: Swatinem/rust-cache@v2
|
- name: Cache Rust target and registry
|
||||||
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
workspaces: 'web/src-tauri'
|
path: |
|
||||||
|
~/.cargo/registry
|
||||||
|
~/.cargo/git
|
||||||
|
web/src-tauri/target
|
||||||
|
key: ${{ runner.os }}-cargo-${{ hashFiles('web/src-tauri/Cargo.lock') }}
|
||||||
- name: Build frontend
|
- name: Build frontend
|
||||||
run: cd web && npm ci && npm run build
|
run: cd web && npm ci && npm run build
|
||||||
shell: cmd
|
shell: cmd
|
||||||
@@ -76,11 +90,14 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/download-artifact@v3
|
- uses: actions/download-artifact@v3
|
||||||
- name: Create release
|
- name: Create release
|
||||||
uses: actions/gitea-release-action@v3
|
uses: softprops/action-gh-release@v2
|
||||||
env:
|
env:
|
||||||
GITEA_TOKEN: ${{ secrets.RELEASE_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
|
||||||
with:
|
with:
|
||||||
tag_name: ${{ github.ref_name }}
|
tag_name: ${{ github.ref_name }}
|
||||||
files: |
|
files: |
|
||||||
linux-bundles/*
|
linux-bundles/**/*.AppImage
|
||||||
windows-bundles/*
|
linux-bundles/**/*.deb
|
||||||
|
linux-bundles/**/*.rpm
|
||||||
|
windows-bundles/**/*.msi
|
||||||
|
windows-bundles/**/*.exe
|
||||||
|
|||||||
Reference in New Issue
Block a user