-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (48 loc) · 1.13 KB
/
build.yml
File metadata and controls
57 lines (48 loc) · 1.13 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
name: Build
on:
workflow_dispatch:
workflow_call:
push:
branches:
- 'master'
paths:
- '.github/workflows/**'
- 'src/**'
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Cache nimble
id: cache-nimble
uses: actions/cache@v4
with:
path: ~/.nimble
key: ${{ runner.os }}-nimble-v2-${{ hashFiles('*.nimble') }}
- name: Setup nim
uses: jiro4989/setup-nim-action@v2
with:
nim-version: 2.2.0
- name: Install Packages
run: nimble install -d -y
- name: Build Webfisher
run: nimble build -Y
- name: Upload Linux artifact
uses: actions/upload-artifact@v4
if: ${{ runner.os == 'Linux' }}
with:
name: webfisher-linux
path: webfisher
- name: Upload Windows artifact
uses: actions/upload-artifact@v4
if: ${{ runner.os == 'Windows' }}
with:
name: webfisher-windows
path: webfisher.exe