on master help sign in
chore(ci): match `*-macos` by checking suffix

Simplifies a conditional expression in the CI workflow configuration. Co-authored-by: Michael Davis <mcarsondavis@gmail.com>

commitaa4394ce1291b0af0b6da5e54cfa60a4c13f7aab authoryvt <i@yvt.jp> dateThu 28 Jul 2022, 09:35 (4 years ago) parent6d16d2c
1 file changed+1−1
.github/workflows/release.yml+1−1
.github/workflows/release.yml+1−1
@@ -116,7 +116,7 @@ jobs:
116116 args: --release --locked --target ${{ matrix.target }}
117117
118118 - name: Strip release binary (linux and macos)
119− if: matrix.build == 'x86_64-linux' || matrix.build == 'x86_64-macos' || matrix.build == 'aarch64-macos'
119+ if: matrix.build == 'x86_64-linux' || endsWith(matrix.build, 'macos')
120120 run: strip "target/${{ matrix.target }}/release/hx"
121121
122122 - name: Strip release binary (arm)