16
16
runs-on : ${{ matrix.os }}
17
17
strategy :
18
18
matrix :
19
- os : [macos-latest, windows-latest]
19
+ os : [macos-latest, windows-latest, windows-11-arm ]
20
20
defaults :
21
21
run :
22
22
shell : bash
31
31
32
32
- name : install ninja (win)
33
33
run : choco install ninja
34
- if : matrix.os == 'windows-latest'
34
+ if : startsWith( matrix.os, 'windows')
35
35
36
36
- name : mkdir
37
37
run : mkdir -p out
47
47
run : cmake -S . -B out -DCMAKE_INSTALL_PREFIX=out/install
48
48
if : matrix.os == 'windows-latest'
49
49
50
+ - name : cmake (win arm64)
51
+ # -G "Visual Studio 15 2017"
52
+ run : cmake -S . -B out -DCMAKE_INSTALL_PREFIX=out-arm64/install
53
+ if : matrix.os == 'windows-11-arm'
54
+
50
55
- name : build
51
56
run : cmake --build out -v --config Release --target install
52
57
56
61
57
62
- name : strip
58
63
run : find out*/install/ -type f -perm -u=x -exec strip -x {} +
59
- if : matrix.os != 'windows-latest'
64
+ if : ${{ !startsWith( matrix.os, 'windows') }}
60
65
61
66
- name : archive
62
67
id : archive
@@ -73,11 +78,12 @@ jobs:
73
78
cmake -E sha256sum $TARBALL > $SHASUM
74
79
echo "TARBALL=$TARBALL" >> $GITHUB_OUTPUT
75
80
echo "SHASUM=$SHASUM" >> $GITHUB_OUTPUT
81
+ if : matrix.os != 'windows-11-arm'
76
82
77
83
- name : archive-arm64
78
84
id : archive-arm64
79
85
run : |
80
- OSNAME=$(echo ${{ matrix.os }} | sed 's/-latest//')
86
+ OSNAME=$(echo ${{ matrix.os }} | sed 's/-latest//' | sed 's/-11-arm//' )
81
87
VERSION=$GITHUB_REF_NAME
82
88
PKGNAME="binaryen-$VERSION-arm64-$OSNAME"
83
89
TARBALL=$PKGNAME.tar.gz
89
95
cmake -E sha256sum $TARBALL > $SHASUM
90
96
echo "TARBALL=$TARBALL" >> $GITHUB_OUTPUT
91
97
echo "SHASUM=$SHASUM" >> $GITHUB_OUTPUT
92
- if : matrix.os == 'macos-latest'
98
+ if : ${{ matrix.os == 'macos-latest' || matrix.os == 'windows-11-arm' }}
93
99
94
100
- name : upload tarball
95
101
uses : softprops/action-gh-release@v1
0 commit comments