git.delta.rocks / jrsonnet / refs/commits / 8e1facac94b0

difftreelog

build support all tier-1 platforms

Bruno Felipe Leal Delfino2021-05-19parent: #0be1df1.patch.diff
in: master

1 file changed

modified.github/workflows/release.ymldiffbeforeafterboth
before · .github/workflows/release.yml
1name: CI23on: [push]45jobs:6  test:7    name: Test Suite8    runs-on: ubuntu-latest9    steps:10      - name: Checkout sources11        uses: actions/checkout@v212      - name: Install stable toolchain13        uses: actions-rs/toolchain@v114        with:15          toolchain: stable16          override: true17      - name: Run tests18        uses: actions-rs/cargo@v119        with:20          command: test21          args: --all2223  cargo-release:24    if: startsWith(github.ref, 'refs/tags/')25    needs: [test]26    runs-on: ubuntu-latest27    steps:28      - name: Checkout sources29        uses: actions/checkout@v230      - name: Install stable toolchain31        uses: actions-rs/toolchain@v132        with:33          toolchain: stable34          override: true35      - name: Install cargo release command36        uses: actions-rs/cargo@v137        with:38          command: install39          args: cargo-release40      - name: Run cargo login41        uses: actions-rs/cargo@v142        with:43          command: login44          args: ${{ secrets.CARGO_TOKEN }}45      - name: Publish crates46        uses: actions-rs/cargo@v147        with:48          command: release49          args: --no-dev-version --skip-push --skip-tag --no-confirm5051  github-release:52    if: startsWith(github.ref, 'refs/tags/')53    needs: [test]54    strategy:55      matrix:56        os: [ubuntu-latest, macOS-latest, windows-latest]57        include:58          - os: ubuntu-latest59            rust: stable60            target: x86_64-unknown-linux-musl61            bin: jrsonnet62            name: jrsonnet-linux-amd6463          - os: windows-latest64            rust: stable65            target: x86_64-pc-windows-msvc66            bin: jrsonnet.exe67            name: jrsonnet-windows-amd64.exe68          - os: macOS-latest69            rust: stable70            target: x86_64-apple-darwin71            bin: jrsonnet72            name: jrsonnet-darwin-amd6473    runs-on: ${{ matrix.os }}74    steps:75      - name: Install stable toolchain76        uses: actions-rs/toolchain@v177        with:78          toolchain: ${{ matrix.rust }}79          override: true80          target: ${{ matrix.target }}81      - name: Checkout82        uses: actions/checkout@v283      - name: Run build84        uses: actions-rs/cargo@v185        with:86          command: build87          args: --bin=jrsonnet --release --target ${{ matrix.target }}88      - name: Package89        shell: bash90        run: |91          strip target/${{ matrix.target }}/release/${{ matrix.bin }}92          cd target/${{ matrix.target }}/release9394          cp ${{ matrix.bin }} ../../../${{ matrix.name }}95          cd -96      - name: Generate SHA-25697        run: shasum -a 256 ${{ matrix.name }} > ${{ matrix.name }}.sha25698      - name: Publish99        uses: softprops/action-gh-release@v1100        with:101          draft: true102          files: "jrsonnet*"103        env:104          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}