@@ -26,14 +26,13 @@ jobs:
26
26
matrix :
27
27
arch : [x86, x86_64, armv7, aarch64]
28
28
cpu_instr : [non-SIMD, SSE2, auto-selected]
29
- os : [ubuntu, alpine]
30
29
31
30
steps :
32
31
- uses : actions/checkout@v3
33
32
with :
34
33
submodules : true
35
34
- name : Setup Alpine Linux for x86
36
- if : matrix.arch == 'x86' && matrix.os == 'alpine'
35
+ if : matrix.arch == 'x86'
37
36
uses : jirutka/setup-alpine@v1
38
37
with :
39
38
arch : x86
@@ -45,36 +44,36 @@ jobs:
45
44
shell-name : alpine-x86.sh
46
45
47
46
- name : Build trimal for Linux x86
48
- if : matrix.arch == 'x86' && matrix.cpu_instr == 'non-SIMD' && matrix.os == 'alpine'
47
+ if : matrix.arch == 'x86' && matrix.cpu_instr == 'non-SIMD'
49
48
run : cmake . -DDISABLE_SSE2=1 -DDISABLE_AVX2=1 && make && file bin/trimal && file bin/readal &&
50
49
./scripts/generate_trimmed_msas.sh && ./scripts/compare_trimmed_msas.sh
51
50
shell : alpine-x86.sh {0}
52
51
- name : Build trimal for Linux x86 and SSE2
53
- if : matrix.arch == 'x86' && matrix.cpu_instr == 'SSE2' && matrix.os == 'alpine'
52
+ if : matrix.arch == 'x86' && matrix.cpu_instr == 'SSE2'
54
53
run : cmake . -DDISABLE_AVX2=1 && make && file bin/trimal && file bin/readal &&
55
54
./scripts/generate_trimmed_msas.sh && ./scripts/compare_trimmed_msas.sh
56
55
shell : alpine-x86.sh {0}
57
56
- name : Build trimal for Linux x86 and auto-selected SIMD (AVX2 if available)
58
- if : matrix.arch == 'x86' && matrix.cpu_instr == 'auto-selected' && matrix.os == 'alpine'
57
+ if : matrix.arch == 'x86' && matrix.cpu_instr == 'auto-selected'
59
58
run : cmake . && make && file bin/trimal && file bin/readal &&
60
59
./scripts/generate_trimmed_msas.sh && ./scripts/compare_trimmed_msas.sh
61
60
shell : alpine-x86.sh {0}
62
61
63
62
- name : Build trimal for Linux x86_64
64
- if : matrix.arch == 'x86_64' && matrix.cpu_instr == 'non-SIMD' && matrix.os == 'ubuntu'
63
+ if : matrix.arch == 'x86_64' && matrix.cpu_instr == 'non-SIMD'
65
64
run : cmake . -DDISABLE_SSE2=1 -DDISABLE_AVX2=1 && make && file bin/trimal && file bin/readal &&
66
65
./scripts/generate_trimmed_msas.sh && ./scripts/compare_trimmed_msas.sh
67
66
- name : Build trimal for Linux x86_64 and SSE2
68
- if : matrix.arch == 'x86_64' && matrix.cpu_instr == 'SSE2' && matrix.os == 'ubuntu'
67
+ if : matrix.arch == 'x86_64' && matrix.cpu_instr == 'SSE2'
69
68
run : cmake . -DDISABLE_AVX2=1 && make && file bin/trimal && file bin/readal &&
70
69
./scripts/generate_trimmed_msas.sh && ./scripts/compare_trimmed_msas.sh
71
70
- name : Build trimal for Linux x86_64 and auto-selected SIMD (AVX2 if available)
72
- if : matrix.arch == 'x86_64' && matrix.cpu_instr == 'auto-selected' && matrix.os == 'ubuntu'
71
+ if : matrix.arch == 'x86_64' && matrix.cpu_instr == 'auto-selected'
73
72
run : cmake . && make && file bin/trimal && file bin/readal &&
74
73
./scripts/generate_trimmed_msas.sh && ./scripts/compare_trimmed_msas.sh
75
74
76
75
- name : Setup Alpine Linux for armv7
77
- if : matrix.arch == 'armv7' && matrix.os == 'alpine'
76
+ if : matrix.arch == 'armv7'
78
77
uses : jirutka/setup-alpine@v1
79
78
with :
80
79
arch : armv7
@@ -85,55 +84,19 @@ jobs:
85
84
make
86
85
shell-name : alpine-armv7.sh
87
86
88
- - name : Build trimal for Linux armv7 (alpine)
89
- if : matrix.arch == 'armv7' && matrix.cpu_instr == 'non-SIMD' && matrix.os == 'alpine'
90
- run : cmake . -D_FILE_OFFSET_BITS=64 - DDISABLE_SSE2=1 -DDISABLE_AVX2=1 && make && file bin/trimal && file bin/readal &&
87
+ - name : Build trimal for Linux armv7
88
+ if : matrix.arch == 'armv7' && matrix.cpu_instr == 'non-SIMD'
89
+ run : cmake . -DDISABLE_SSE2=1 -DDISABLE_AVX2=1 && make && file bin/trimal && file bin/readal &&
91
90
./scripts/generate_trimmed_msas.sh && ./scripts/compare_trimmed_msas.sh
92
91
shell : alpine-armv7.sh {0}
93
- - name : Build trimal for Linux armv7 (alpine) and auto-selected SIMD (NEON)
94
- if : matrix.arch == 'armv7' && matrix.cpu_instr == 'auto-selected' && matrix.os == 'alpine'
95
- run : cmake . -D_FILE_OFFSET_BITS=64 && make && file bin/trimal && file bin/readal &&
92
+ - name : Build trimal for Linux armv7 and auto-selected SIMD (NEON)
93
+ if : matrix.arch == 'armv7' && matrix.cpu_instr == 'auto-selected'
94
+ run : cmake . && make && file bin/trimal && file bin/readal &&
96
95
./scripts/generate_trimmed_msas.sh && ./scripts/compare_trimmed_msas.sh
97
96
shell : alpine-armv7.sh {0}
98
97
99
- - name : Build trimal for Linux armv7 (ubuntu)
100
- if : matrix.arch == 'armv7' && matrix.cpu_instr == 'non-SIMD' && matrix.os == 'ubuntu'
101
- uses : uraimo/run-on-arch-action@v2
102
- # Emulate ARM architecture since it's not natively supported by GitHub.
103
- # Warning about image and host platforms not matching may be ignored (https://github.com/uraimo/run-on-arch-action/issues/127#issuecomment-1605691328)
104
- with :
105
- arch : ${{ matrix.arch }}
106
- distro : ubuntu20.04
107
- githubToken : ${{ github.token }}
108
- dockerRunArgs : |
109
- --volume "${PWD}:/trimal"
110
- install : |
111
- apt-get update -q -y
112
- apt-get install -q -y cmake make g++ file
113
- run : |
114
- cmake . -D_FILE_OFFSET_BITS=64 -DDISABLE_NEON=1 && make && file bin/trimal && file bin/readal &&
115
- ./scripts/generate_trimmed_msas.sh && ./scripts/compare_trimmed_msas.sh
116
-
117
- - name : Build trimal for Linux armv7 (ubuntu) and auto-selected SIMD (NEON)
118
- if : matrix.arch == 'armv7' && matrix.cpu_instr == 'auto-selected' && matrix.os == 'ubuntu'
119
- uses : uraimo/run-on-arch-action@v2
120
- # Emulate ARM architecture since it's not natively supported by GitHub.
121
- # Warning about image and host platforms not matching may be ignored (https://github.com/uraimo/run-on-arch-action/issues/127#issuecomment-1605691328)
122
- with :
123
- arch : ${{ matrix.arch }}
124
- distro : ubuntu20.04
125
- githubToken : ${{ github.token }}
126
- dockerRunArgs : |
127
- --volume "${PWD}:/trimal"
128
- install : |
129
- apt-get update -q -y
130
- apt-get install -q -y cmake make g++ file
131
- run : |
132
- cmake . -D_FILE_OFFSET_BITS=64 && make && file bin/trimal && file bin/readal &&
133
- ./scripts/generate_trimmed_msas.sh && ./scripts/compare_trimmed_msas.sh
134
-
135
98
- name : Build trimal for Linux aarch64
136
- if : matrix.arch == 'aarch64' && matrix.cpu_instr == 'non-SIMD' && matrix.os == 'ubuntu'
99
+ if : matrix.arch == 'aarch64' && matrix.cpu_instr == 'non-SIMD'
137
100
uses : uraimo/run-on-arch-action@v2
138
101
# Emulate ARM architecture since it's not natively supported by GitHub.
139
102
# Warning about image and host platforms not matching may be ignored (https://github.com/uraimo/run-on-arch-action/issues/127#issuecomment-1605691328)
@@ -150,7 +113,7 @@ jobs:
150
113
cmake . -DDISABLE_NEON=1 && make && file bin/trimal && file bin/readal &&
151
114
./scripts/generate_trimmed_msas.sh && ./scripts/compare_trimmed_msas.sh
152
115
- name : Build trimal for Linux aarch64 and auto-selected SIMD (NEON)
153
- if : matrix.arch == 'aarch64' && matrix.cpu_instr == 'auto-selected' && matrix.os == 'ubuntu'
116
+ if : matrix.arch == 'aarch64' && matrix.cpu_instr == 'auto-selected'
154
117
uses : uraimo/run-on-arch-action@v2
155
118
# Emulate ARM architecture since it's not natively supported by GitHub.
156
119
# Warning about image and host platforms not matching may be ignored (https://github.com/uraimo/run-on-arch-action/issues/127#issuecomment-1605691328)
0 commit comments