56
56
version : 1.0
57
57
- name : setup and build
58
58
run : |
59
- nimble install https://github.com/pysan3/nim_pandoc -y
60
59
nimble setup -y
61
60
nim musl -d:pcre -f:on nim_norg.nim
62
61
- name : Compress Generated binaries
@@ -67,24 +66,54 @@ jobs:
67
66
with :
68
67
name : nim_norg-${{ matrix.target.name }}.tar.gz
69
68
path : nim_norg-${{ matrix.target.name }}.tar.gz
70
- build :
69
+ build-mac :
71
70
strategy :
72
71
fail-fast : false
73
72
matrix :
74
73
target :
75
74
- os : macosx
76
75
triple : x86_64-apple-darwin14
77
76
name : apple_x64
77
+ include :
78
+ - target :
79
+ os : macosx
80
+ builder : macos-11
81
+ defaults :
82
+ run :
83
+ shell : bash
84
+ name : ' ${{ matrix.target.triple }}'
85
+ runs-on : ${{ matrix.builder }}
86
+ steps :
87
+ - name : Checkout
88
+ uses : actions/checkout@v3
89
+ -
uses :
jiro4989/[email protected]
90
+ with :
91
+ nim-version : stable
92
+ yes : true
93
+ - name : setup and build
94
+ run : |
95
+ nimble setup -y
96
+ nimble build -f:on -y
97
+ - name : Compress Generated binaries
98
+ run : |
99
+ tar -c -z -v -f ./nim_norg-${{ matrix.target.name }}.tar.gz `ls nim_norg{,.exe} 2>/dev/null || true`
100
+ - name : Upload Generated Binaries
101
+ uses : actions/upload-artifact@v2
102
+ with :
103
+ name : nim_norg-${{ matrix.target.name }}.tar.gz
104
+ path : nim_norg-${{ matrix.target.name }}.tar.gz
105
+ build-win :
106
+ strategy :
107
+ fail-fast : false
108
+ matrix :
109
+ target :
78
110
- os : windows
79
111
triple : x86_64-w64-mingw32
80
112
name : windows_x64
81
113
- os : windows
82
114
triple : i686-w64-mingw32
83
115
name : windows_x32
84
116
include :
85
- - target :
86
- os : macosx
87
- builder : macos-11
88
117
- target :
89
118
os : windows
90
119
builder : windows-2019
@@ -102,8 +131,8 @@ jobs:
102
131
yes : true
103
132
- name : setup and build
104
133
run : |
105
- nimble install https://github.com/pysan3/nim_pandoc -y
106
- nimble setup -y
134
+ nimble install https://github.com/pysan3/nim_pandoc -y --noLockfile
135
+ nimble setup -y --noLockfile
107
136
nimble build -f:on -y
108
137
- name : Compress Generated binaries
109
138
run : |
@@ -117,7 +146,8 @@ jobs:
117
146
name : Create Github Release
118
147
needs :
119
148
- build-musl
120
- - build
149
+ - build-mac
150
+ - build-win
121
151
runs-on : ubuntu-latest
122
152
permissions :
123
153
contents : write
0 commit comments