14
14
strategy :
15
15
matrix :
16
16
machine : [x64_linux, x64_mac, arm64_linux, arm64_mac]
17
- runs-on : [self-hosted, kmer-db , '${{ matrix.machine }}']
17
+ runs-on : [self-hosted, famsa , '${{ matrix.machine }}']
18
18
19
19
steps :
20
20
- name : clean
24
24
with :
25
25
submodules : recursive
26
26
27
+ # #######################################################################################
28
+ checkout-windows :
29
+ name : checkout (Windows)
30
+ strategy :
31
+ matrix :
32
+ machine : [x64_windows]
33
+ runs-on : [self-hosted, famsa, '${{ matrix.machine }}']
34
+
35
+ steps :
36
+ - name : clean
37
+ run : Remove-Item -Path "${{ github.workspace }}/*" -Recurse -Force
38
+
39
+ - uses : actions/checkout@v4
40
+ with :
41
+ submodules : recursive
42
+
27
43
# #######################################################################################
28
44
make :
29
45
name : Make
@@ -33,35 +49,62 @@ jobs:
33
49
matrix :
34
50
machine : [x64_linux]
35
51
platform : [avx2]
36
- compiler : [g++-13]
37
- static : [true]
52
+ compiler : [13]
38
53
include :
39
- - {machine: arm64_linux, platform: arm8, compiler: g++-12, static: true }
40
- - {machine: x64_mac, platform: avx2, compiler: g++-13, static: false }
41
- - {machine: arm64_mac, platform: m1, compiler: g++-13, static: false }
54
+ - {machine: arm64_linux, platform: arm8, compiler: 12 }
55
+ - {machine: x64_mac, platform: avx2, compiler: 13 }
56
+ - {machine: arm64_mac, platform: m1, compiler: 13 }
42
57
43
58
runs-on : [self-hosted, famsa, '${{ matrix.machine }}']
44
59
45
60
steps :
46
61
- name : make
47
- run : make -j32 CXX=${{matrix.compiler}} STATIC_LINK= ${{ matrix.static }} PLATFORM=${{ matrix.platform }}
62
+ run : gmake -j32 CXX=g++- ${{matrix.compiler}} CC=gcc- ${{matrix.compiler}} STATIC_LINK=true PLATFORM=${{ matrix.platform }}
48
63
- name : tar artifacts
49
- run : tar -cvzf famsa.tar.gz famsa LICENSE
64
+ run : tar -cvzf famsa.tar.gz LICENSE -C ./bin famsa
65
+
66
+
67
+ # #######################################################################################
68
+ make-windows :
69
+ name : Make (Windows)
70
+ needs : checkout-windows
71
+ strategy :
72
+ fail-fast : false
73
+ matrix :
74
+ machine : [x64_windows]
75
+
76
+ runs-on : [self-hosted, famsa, '${{ matrix.machine }}']
77
+
78
+ env :
79
+ MSBUILD : " C:/Microsoft Visual Studio/2022/Community/MSBuild/Current/Bin/MSBuild.exe"
80
+
81
+ steps :
82
+ - name : make
83
+ run : |
84
+ & "$env:MSBUILD" FAMSA.sln /p:Configuration=Release /p:Platform=x64 /m
85
+ - name : tar artifacts
86
+ run : tar -cvzf famsa.tar.gz LICENSE -C ./x64/Release famsa.exe
50
87
51
88
52
89
# #######################################################################################
53
90
help :
54
91
name : Print usage
55
- needs : make
92
+ needs :
93
+ - make
94
+ - make-windows
56
95
strategy :
57
96
fail-fast : false
58
97
matrix :
59
98
machine : [x64_linux, x64_mac, arm64_linux, arm64_mac]
99
+ exec : [./bin/famsa]
100
+ include :
101
+ - {machine: x64_windows, exec: ./x64/Release/famsa.exe}
102
+
60
103
runs-on : [self-hosted, famsa, '${{ matrix.machine }}']
61
104
62
105
steps :
63
106
- name : help
64
- run : ./famsa
107
+ run : ${{ matrix.exec }}
65
108
66
109
# #######################################################################################
67
110
upload :
70
113
strategy :
71
114
fail-fast : false
72
115
matrix :
73
- machine : [x64_linux, x64_mac, arm64_linux, arm64_mac]
116
+ machine : [x64_linux, x64_mac, arm64_linux, arm64_mac, x64_windows ]
74
117
runs-on : [self-hosted, famsa, '${{ matrix.machine }}']
75
118
76
119
steps :
0 commit comments