5252 ref : ${{ github.event.inputs.ref || github.ref }} # checks out code you specify in github UI
5353
5454 - name : Set up Node.js
55- uses : actions/setup-node@v3
55+ uses : actions/setup-node@v4
5656 with :
57- node-version : " 18"
57+ node-version : lts/*
58+ cache : " pnpm"
5859
5960 - name : Set up Python
6061 uses : actions/setup-python@v4
7374 corepack prepare pnpm@latest --activate
7475 pnpm install-reqs
7576
77+ - name : Install system dependencies for Linux
78+ if : runner.os == 'linux'
79+ run : |
80+ sudo apt-get update
81+ sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf
82+
83+ - name : Install Rust
84+ uses : dtolnay/rust-toolchain@stable # Set this to dtolnay/rust-toolchain@nightly
85+ with :
86+ # Those targets are only used on macos runners so it's in an `if` to slightly speed up windows and linux builds.
87+ targets : ${{ matrix.os == 'macos-latest' && 'aarch64-apple-darwin,x86_64-apple-darwin' || '' }}
88+
89+ - name : Rust cache
90+ uses : swatinem/rust-cache@v2
91+ with :
92+ workspaces : " ./src-tauri -> target"
93+
7694 - name : Build icons
7795 run : pnpm build:icons
7896
@@ -91,25 +109,12 @@ jobs:
91109 # - name: Build Next.js
92110 # run: pnpm next build
93111
94- - name : Install system dependencies for Linux
95- if : runner.os == 'linux'
96- run : |
97- sudo apt-get update
98- sudo apt-get install -y gio-2.0
99- sudo apt-get install libgtk-3-dev # Debian/Ubuntu
100-
101- - name : Set up Rust
102- uses : actions-rs/toolchain@v1
103- with :
104- profile : minimal
105- toolchain : stable # You can also specify a version, e.g., "1.72.0"
106- override : true
107-
108112 - name : Build Tauri app
109113 run : pnpm tauri build
110114
111115 - name : Determine artifact path
112116 id : artifact_path
117+ shell : bash
113118 run : |
114119 if [[ "${{ runner.os }}" == "Windows" ]]; then
115120 echo "artifact_path=src-tauri/target/release/bundle/nsis/" >> $GITHUB_ENV
0 commit comments