-
Notifications
You must be signed in to change notification settings - Fork 0
63 lines (47 loc) · 1.52 KB
/
ci.yml
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
name: CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
workflow_dispatch:
jobs:
build:
strategy:
matrix:
build_os: [ ubuntu-latest ]
host_os: [ linux, nixos, darwin ]
host_arch: [ x86_64, aarch64 ]
runs-on: ${{ matrix.build_os }}
steps:
- uses: actions/checkout@v3
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@v4
- uses: DeterminateSystems/magic-nix-cache-action@v1
- name: Run Build (${{ matrix.host_arch }}-${{ matrix.host_os }})
run: nix -L build .#app/${{ matrix.host_os }}/${{ matrix.host_arch }}
build-wasm:
name: build (ubuntu-latest, freestanding, wasm32)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@v4
- uses: DeterminateSystems/magic-nix-cache-action@v1
- name: Run Build (wasm32-freestanding)
run: nix -L build .#app/wasm
build-windows:
name: build (ubuntu-latest, windows, x86_64)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@v4
- uses: DeterminateSystems/magic-nix-cache-action@v1
- name: Run Build (Windows x86_64)
run: nix -L build .#app/windows/x86_64
- name: Upload Windows Artifact
uses: actions/[email protected]
with:
name: app-windows-x86_64
path: ./result/bin/