File tree Expand file tree Collapse file tree 3 files changed +107
-2
lines changed
Expand file tree Collapse file tree 3 files changed +107
-2
lines changed Original file line number Diff line number Diff line change 1+ name : CI
2+
3+ on :
4+ push :
5+ branches : [main]
6+ pull_request :
7+ branches : [main]
8+ workflow_dispatch :
9+
10+ jobs :
11+ test-build :
12+ strategy :
13+ fail-fast : false
14+ matrix :
15+ platform : [macos-latest, ubuntu-22.04, windows-latest]
16+
17+ runs-on : ${{ matrix.platform }}
18+ steps :
19+ - uses : actions/checkout@v4
20+
21+ - name : setup node
22+ uses : actions/setup-node@v4
23+ with :
24+ node-version : lts/*
25+
26+ - name : install Rust stable
27+ uses : dtolnay/rust-toolchain@stable
28+
29+ - name : install dependencies (ubuntu only)
30+ if : matrix.platform == 'ubuntu-22.04'
31+ run : |
32+ sudo apt-get update
33+ sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf
34+
35+ - name : install frontend dependencies
36+ run : yarn install
37+
38+ - name : build frontend
39+ run : yarn build
40+
41+ - name : check rust code
42+ run : |
43+ cd src-tauri
44+ cargo check
Original file line number Diff line number Diff line change 1+ name : " Release"
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+ tags :
8+ - " v*"
9+ workflow_dispatch :
10+
11+ jobs :
12+ publish :
13+ permissions :
14+ contents : write
15+ strategy :
16+ fail-fast : false
17+ matrix :
18+ include :
19+ - platform : " macos-latest" # for Arm based macs (M1 and above)
20+ args : " --target aarch64-apple-darwin"
21+ - platform : " macos-latest" # for Intel based macs
22+ args : " --target x86_64-apple-darwin"
23+ - platform : " ubuntu-22.04" # for Linux
24+ args : " "
25+ - platform : " windows-latest" # for Windows
26+ args : " "
27+
28+ runs-on : ${{ matrix.platform }}
29+ steps :
30+ - uses : actions/checkout@v4
31+
32+ - name : setup node
33+ uses : actions/setup-node@v4
34+ with :
35+ node-version : lts/*
36+
37+ - name : install Rust stable
38+ uses : dtolnay/rust-toolchain@stable
39+ with :
40+ # Those targets are only used on macos runners so it's skip on linux and windows
41+ targets : ${{ matrix.platform == 'macos-latest' && 'aarch64-apple-darwin,x86_64-apple-darwin' || '' }}
42+
43+ - name : install dependencies (ubuntu only)
44+ if : matrix.platform == 'ubuntu-22.04'
45+ run : |
46+ sudo apt-get update
47+ sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf
48+
49+ - name : install frontend dependencies
50+ run : yarn install
51+
52+ - uses : tauri-apps/tauri-action@v0
53+ env :
54+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
55+ with :
56+ tagName : v__VERSION__ # the action automatically replaces __VERSION__ with the app version
57+ releaseName : " App v__VERSION__"
58+ releaseBody : " See the assets to download this version and install."
59+ releaseDraft : true
60+ prerelease : false
61+ args : ${{ matrix.args }}
Original file line number Diff line number Diff line change 44 "version" : " 0.1.0" ,
55 "identifier" : " com.ollama.ui" ,
66 "build" : {
7- "beforeDevCommand" : " npm run dev" ,
7+ "beforeDevCommand" : " yarn dev" ,
88 "devUrl" : " http://localhost:1420" ,
9- "beforeBuildCommand" : " npm run build" ,
9+ "beforeBuildCommand" : " yarn build" ,
1010 "frontendDist" : " ../dist"
1111 },
1212 "app" : {
You can’t perform that action at this time.
0 commit comments