@@ -9,16 +9,22 @@ env:
99
1010jobs:
1111 build-binary:
12− runs-on: ubuntu-latest
1312 strategy:
1413 matrix:
1514 include:
1615 - name: Linux 64-bit
17− file_name: linux_amd64
16+ file-name: linux_amd64
1817 target: x86_64-unknown-linux-gnu
18+ host: ubuntu-latest
19+ use-cross: true
1920 - name: macOS
20− file_name: darwin_amd64
21+ file-name: darwin_amd64
2122 target: x86_64-apple-darwin
23+ host: macos-11
24+ use-cross: false
25+
26+ runs-on: ${{ matrix.host }}
27+
2228 steps:
2329 - name: Checkout
2430 uses: actions/checkout@v2
@@ -34,13 +40,13 @@ jobs:
3440 with:
3541 command: build
3642 args: --release
37− use-cross: true
43+ use-cross: ${{ matrix.use-cross }}
3844 - name: Rename binary
39− run: mv target/release/reshape ./reshape-${{ matrix.file_name }}
45+ run: mv target/release/reshape ./reshape-${{ matrix.file-name }}
4046 - name: Upload binary to release
4147 env:
4248 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
4450
4551 publish-docker:
4652 runs-on: ubuntu-latest