chore(ci): match *-macos by checking suffix

Simplifies a conditional expression in the CI workflow configuration.

Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
This commit is contained in:
yvt 2022-07-28 09:35:28 +09:00 committed by Blaž Hrastnik
parent 6d16d2cbc9
commit aa4394ce12

View File

@ -116,7 +116,7 @@ jobs:
args: --release --locked --target ${{ matrix.target }} args: --release --locked --target ${{ matrix.target }}
- name: Strip release binary (linux and macos) - name: Strip release binary (linux and macos)
if: matrix.build == 'x86_64-linux' || matrix.build == 'x86_64-macos' || matrix.build == 'aarch64-macos' if: matrix.build == 'x86_64-linux' || endsWith(matrix.build, 'macos')
run: strip "target/${{ matrix.target }}/release/hx" run: strip "target/${{ matrix.target }}/release/hx"
- name: Strip release binary (arm) - name: Strip release binary (arm)