-
-
Notifications
You must be signed in to change notification settings - Fork 7
90 lines (66 loc) · 2 KB
/
nim-devel.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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
name: Continuous Integration - development version
on:
push:
branches: [ master ]
jobs:
tests:
runs-on: ubuntu-latest
timeout-minutes: 30
container: ghcr.io/thindil/build:10
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Debug build
run: |
git config --global --add safe.directory /__w/steamsky/steamsky
nimble debug -y
- name: Check with Nimalyzer
run: /root/.nimble/bin/nimalyzer others/nimalyzer.cfg
- name: Upload the log
uses: actions/upload-artifact@v4
if: failure()
with:
name: nimalyzer.log
path: nimalyzer.log
- name: Run the tests
run: others/tests.nims 30
build_linux:
if: ${{ always() }}
needs: tests
runs-on: ubuntu-latest
container: ghcr.io/thindil/build:10
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build the program
run: |
git config --global --add safe.directory /__w/steamsky/steamsky
others/build.nims x86_64-linux-gnu
- name: Compress the artifact
run: tar -cf steamsky-development-linux.tar -C release steamsky-linux
- name: Upload the artifact
uses: actions/upload-artifact@v4
with:
name: steamsky-development-linux.tar
path: steamsky-development-linux.tar
build_windows:
if: ${{ always() }}
needs: tests
runs-on: ubuntu-latest
container: ghcr.io/thindil/buildwin64:10
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build the program
run: |
git config --global --add safe.directory /__w/steamsky/steamsky
apt-get update
apt-get install -y gcc
others/build.nims x86_64-windows
- name: Compress the artifact
run: tar -cf steamsky-development-windows.tar -C release steamsky-windows
- name: Upload the artifact
uses: actions/upload-artifact@v4
with:
name: steamsky-development-windows.tar
path: steamsky-development-windows.tar