-
Notifications
You must be signed in to change notification settings - Fork 0
65 lines (54 loc) · 1.6 KB
/
artifacts.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
64
65
on:
push
name: Build CLI 🧪
jobs:
build:
name: "Build CLI for Windows and Linux"
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
nim_version:
- '2.0.2'
env:
TIMEOUT_EXIT_STATUS: 124
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-${{ hashFiles('*.nimble') }}
- uses: jiro4989/setup-nim-action@v1
with:
nim-version: ${{ matrix.nim_version }}
- name: Install Dependencies 🔨
run: |
sudo apt install mingw-w64
- name: Windows build
run: |
cd src/
nim c -d:danger -d:strip --cpu:amd64 -d:mingw --passC:-flto --passL:-flto --out:../bin/win/x64/elys.exe elys
nim c -d:danger -d:strip --cpu:i386 -d:mingw --passC:-flto --passL:-flto --out:../bin/win/x86/elys.exe elys
- name: Unix build
run: |
cd src/
nim c -d:danger -d:strip --passC:-flto --passL:-flto --out:../bin/linux/x64/elys elys
- uses: actions/upload-artifact@v4
with:
name: windows-x64
path: |
bin/win/x64/elys.exe
- uses: actions/upload-artifact@v4
with:
name: windows-x86
path: |
bin/win/x86/elys.exe
- uses: actions/upload-artifact@v4
with:
name: linux-x64
path: |
bin/linux/x64/elys