@@ -9,16 +9,22 @@ env:
11 build-binary:
11 build-binary:
12− runs-on: ubuntu-latest
16 - name: Linux 64-bit
15 - name: Linux 64-bit
17− file_name: linux_amd64
16+ file-name: linux_amd64
18 target: x86_64-unknown-linux-gnu
17 target: x86_64-unknown-linux-gnu
19 - name: macOS
20 - name: macOS
20− file_name: darwin_amd64
21+ file-name: darwin_amd64
21 target: x86_64-apple-darwin
22 target: x86_64-apple-darwin
26+ runs-on: ${{ matrix.host }}
23 - name: Checkout
29 - name: Checkout
24 uses: actions/checkout@v2
30 uses: actions/checkout@v2
@@ -34,13 +40,13 @@ jobs:
35 command: build
41 command: build
36 args: --release
42 args: --release
37− use-cross: true
43+ use-cross: ${{ matrix.use-cross }}
38 - name: Rename binary
44 - name: Rename binary
39− run: mv target/release/reshape ./reshape-${{ matrix.file_name }}
45+ run: mv target/release/reshape ./reshape-${{ matrix.file-name }}
40 - name: Upload binary to release
46 - name: Upload binary to release
42 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
48 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
43− run: gh release upload ${GITHUB_REF##*/} "reshape-${{ matrix.file_name }}#${{ matrix.name }}" --clobber
49+ run: gh release upload ${GITHUB_REF##*/} "reshape-${{ matrix.file-name }}#${{ matrix.name }}" --clobber
45 publish-docker:
51 publish-docker:
46 runs-on: ubuntu-latest
52 runs-on: ubuntu-latest