-
-
Notifications
You must be signed in to change notification settings - Fork 331
72 lines (68 loc) · 2.19 KB
/
Copy pathbuild.yml
File metadata and controls
72 lines (68 loc) · 2.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
name: Build
on:
push:
branches: ['main']
pull_request:
permissions:
contents: read
env:
CARGO_TERM_COLOR: always
jobs:
build:
name: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, windows-2022, ubuntu-latest, ubuntu-24.04-arm]
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- name: Install dependencies
if: startsWith(matrix.os, 'ubuntu')
run: |
sudo apt update
sudo apt install --no-install-recommends \
libwebkit2gtk-4.1-dev \
build-essential \
curl \
wget \
file \
libxdo-dev \
libssl-dev \
libayatana-appindicator3-dev \
librsvg2-dev
- uses: actions/checkout@v7
- uses: oven-sh/setup-bun@v2
- uses: Swatinem/rust-cache@v2
- uses: Jimver/cuda-toolkit@master
if: startsWith(matrix.os, 'ubuntu')
with:
cuda: '13.0.0'
log-file-suffix: '${{ matrix.os }}.txt'
- uses: Jimver/cuda-toolkit@master
if: startsWith(matrix.os, 'windows')
with:
cuda: '13.0.0'
method: 'network'
sub-packages: '["nvcc", "cudart", "crt", "thrust", "nvvm", "cublas", "cublas_dev", "cufft", "cufft_dev", "curand", "curand_dev", "nvrtc", "nvrtc_dev"]'
log-file-suffix: '${{ matrix.os }}.txt'
- uses: ilammy/msvc-dev-cmd@v1
if: startsWith(matrix.os, 'windows')
- uses: actions/cache@v6
with:
path: ~/.bun/install/cache
key: ${{ runner.os }}-bun-${{ hashFiles('**/bun.lock') }}
- run: bun install
- uses: actions/cache@v6
with:
path: ${{ github.workspace }}/ui/.next/cache
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/bun.lock') }}-${{ hashFiles('ui/**/*.js', 'ui/**/*.jsx', 'ui/**/*.ts', 'ui/**/*.tsx') }}
restore-keys: |
${{ runner.os }}-nextjs-${{ hashFiles('**/bun.lock') }}-
- run: bun tauri build --no-bundle
- name: Upload Artifact
uses: actions/upload-artifact@v7
with:
name: koharu-${{ matrix.os }}
path: |
target/release/koharu*
retention-days: 3