difftreelog
ci cleanup workflows
in: master
2 files changed
.github/workflows/lints.ymldiffbeforeafterboth--- a/.github/workflows/lints.yml
+++ /dev/null
@@ -1,69 +0,0 @@
-on: [push, pull_request]
-
-name: Misc lints
-
-jobs:
- check:
- name: Check
- runs-on: ubuntu-latest
- steps:
- - name: Checkout sources
- uses: actions/checkout@v2
-
- - name: Install stable toolchain
- uses: actions-rs/toolchain@v1
- with:
- profile: minimal
- toolchain: stable
- override: true
-
- - name: Run cargo check
- uses: actions-rs/cargo@v1
- with:
- command: check
-
- test:
- name: Test Suite
- runs-on: ubuntu-latest
- steps:
- - name: Checkout sources
- uses: actions/checkout@v2
-
- - name: Install stable toolchain
- uses: actions-rs/toolchain@v1
- with:
- profile: minimal
- toolchain: stable
- override: true
-
- - name: Run cargo test
- uses: actions-rs/cargo@v1
- with:
- command: test
-
- lints:
- name: Lints
- runs-on: ubuntu-latest
- steps:
- - name: Checkout sources
- uses: actions/checkout@v2
-
- - name: Install stable toolchain
- uses: actions-rs/toolchain@v1
- with:
- profile: minimal
- toolchain: stable
- override: true
- components: rustfmt, clippy
-
- # - name: Run cargo fmt
- # uses: actions-rs/cargo@v1
- # with:
- # command: fmt
- # args: --all -- --check
-
- - name: Run cargo clippy
- uses: actions-rs/cargo@v1
- with:
- command: clippy
- args: -- -D warnings
.github/workflows/release.ymldiffbeforeafterboth1name: 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/') && !endsWith(github.ref, '-test')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 target:57 # Linux build notes:58 # While musl targets are not as supported as gnu, those are most relevant to users,59 # which want to download binaries from github, as glibc has compatibility issues60 # with older distros6162 # Tier 163 - i686-pc-windows-msvc64 - x86_64-apple-darwin65 - x86_64-pc-windows-msvc6667 # Tier 268 - aarch64-apple-darwin69 - aarch64-unknown-linux-musl70 - i686-unknown-linux-musl71 - x86_64-unknown-linux-musl72 include:73 # Linux74 - target: aarch64-unknown-linux-musl75 os: ubuntu-latest76 bin: jrsonnet77 name: jrsonnet-linux-aarch6478 - target: i686-unknown-linux-musl79 os: ubuntu-latest80 bin: jrsonnet81 name: jrsonnet-linux-i68682 - target: x86_64-unknown-linux-musl83 os: ubuntu-latest84 bin: jrsonnet85 name: jrsonnet-linux-amd648687 # Windows88 - target: i686-pc-windows-msvc89 os: windows-latest90 bin: jrsonnet.exe91 name: jrsonnet-windows-i686.exe92 - target: x86_64-pc-windows-msvc93 os: windows-latest94 bin: jrsonnet.exe95 name: jrsonnet-windows-amd64.exe9697 # Apple98 - target: aarch64-apple-darwin99 os: macOS-latest100 bin: jrsonnet101 name: jrsonnet-darwin-aarch64102 - target: x86_64-apple-darwin103 os: macOS-latest104 bin: jrsonnet105 name: jrsonnet-darwin-amd64106 runs-on: ${{ matrix.os }}107 steps:108 - name: Install stable toolchain109 uses: actions-rs/toolchain@v1110 with:111 toolchain: stable112 override: true113 target: ${{ matrix.target }}114115 - name: Checkout116 uses: actions/checkout@v2117118 - name: Add experimental flags119 if: ${{ endsWith(github.ref, '-test' )}}120 run: echo 'EXPERIMENTAL_FLAGS=--features=experimental' >> $GITHUB_ENV121122 - name: Linux x86 cross compiler123 if: ${{ startsWith(matrix.target, 'i686-unknown-linux-') }}124 run: sudo apt install gcc-multilib125126 - name: ARM cross compiler127 if: ${{ startsWith(matrix.target, 'aarch64-unknown-linux-') }}128 uses: actions-rs/cargo@v1129 with:130 command: install131 args: cross132133 - name: ARM gcc134 if: ${{ startsWith(matrix.target, 'aarch64-unknown-linux-') }}135 run: sudo apt install gcc-aarch64-linux-gnu136137 - name: Musl gcc138 if: ${{ endsWith(matrix.target, '-musl') }}139 run: sudo apt install musl musl-tools140141 - name: Run cross build142 if: ${{ startsWith(matrix.target, 'aarch64-unknown-linux-') }}143 shell: bash144 run: cross build --bin=jrsonnet --release --target ${{ matrix.target }} ${{ env.EXPERIMENTAL_FLAGS }}145146 - name: Run build147 if: ${{ !startsWith(matrix.target, 'aarch64-unknown-linux-') }}148 uses: actions-rs/cargo@v1149 with:150 command: build151 args: --bin=jrsonnet --release --target ${{ matrix.target }} ${{ env.EXPERIMENTAL_FLAGS }}152153 - name: Package154 shell: bash155 run: |156 cd target/${{ matrix.target }}/release157158 cp ${{ matrix.bin }} ../../../${{ matrix.name }}159 cd -160161 - name: Generate SHA-256162 run: shasum -a 256 ${{ matrix.name }} > ${{ matrix.name }}.sha256163164 - name: Publish165 uses: softprops/action-gh-release@v1166 with:167 draft: true168 files: "jrsonnet*"169 env:170 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}1name: CI2on: [push]3jobs:4 test:5 name: Test Suite6 runs-on: ubuntu-latest7 steps:8 - name: Checkout sources9 uses: actions/checkout@v210 - name: Install stable toolchain11 uses: actions-rs/toolchain@v112 with:13 toolchain: stable14 override: true15 - name: Run tests16 uses: actions-rs/cargo@v117 with:18 command: test19 args: --all2021 cargo-release:22 if: startsWith(github.ref, 'refs/tags/') && !endsWith(github.ref, '-test')23 needs: [test]24 runs-on: ubuntu-latest25 steps:26 - name: Checkout sources27 uses: actions/checkout@v228 - name: Install stable toolchain29 uses: actions-rs/toolchain@v130 with:31 toolchain: stable32 override: true33 - name: Install cargo release command34 uses: actions-rs/cargo@v135 with:36 command: install37 args: cargo-release38 - name: Run cargo login39 uses: actions-rs/cargo@v140 with:41 command: login42 args: ${{ secrets.CARGO_TOKEN }}43 - name: Publish crates44 uses: actions-rs/cargo@v145 with:46 command: release47 args: --no-dev-version --skip-push --skip-tag --no-confirm4849 github-release:50 if: startsWith(github.ref, 'refs/tags/')51 needs: [test]52 strategy:53 matrix:54 target:55 # Linux build notes:56 # While musl targets are not as supported as gnu, those are most relevant to users,57 # which want to download binaries from github, as glibc has compatibility issues58 # with older distros5960 # Tier 161 - i686-pc-windows-msvc62 - x86_64-apple-darwin63 - x86_64-pc-windows-msvc6465 # Tier 266 - aarch64-apple-darwin67 - aarch64-unknown-linux-musl68 - i686-unknown-linux-musl69 - x86_64-unknown-linux-musl70 include:71 # Linux72 - target: aarch64-unknown-linux-musl73 os: ubuntu-latest74 bin: jrsonnet75 name: jrsonnet-linux-aarch6476 - target: i686-unknown-linux-musl77 os: ubuntu-latest78 bin: jrsonnet79 name: jrsonnet-linux-i68680 - target: x86_64-unknown-linux-musl81 os: ubuntu-latest82 bin: jrsonnet83 name: jrsonnet-linux-amd648485 # Windows86 - target: i686-pc-windows-msvc87 os: windows-latest88 bin: jrsonnet.exe89 name: jrsonnet-windows-i686.exe90 - target: x86_64-pc-windows-msvc91 os: windows-latest92 bin: jrsonnet.exe93 name: jrsonnet-windows-amd64.exe9495 # Apple96 - target: aarch64-apple-darwin97 os: macOS-latest98 bin: jrsonnet99 name: jrsonnet-darwin-aarch64100 - target: x86_64-apple-darwin101 os: macOS-latest102 bin: jrsonnet103 name: jrsonnet-darwin-amd64104 runs-on: ${{ matrix.os }}105 steps:106 - name: Install stable toolchain107 uses: actions-rs/toolchain@v1108 with:109 toolchain: stable110 override: true111 target: ${{ matrix.target }}112113 - name: Checkout114 uses: actions/checkout@v2115116 - name: Add experimental flags117 if: ${{ endsWith(github.ref, '-test' )}}118 run: echo 'EXPERIMENTAL_FLAGS=--features=experimental' >> $GITHUB_ENV119120 - name: Linux x86 cross compiler121 if: ${{ startsWith(matrix.target, 'i686-unknown-linux-') }}122 run: sudo apt install gcc-multilib123124 - name: ARM cross compiler125 if: ${{ startsWith(matrix.target, 'aarch64-unknown-linux-') }}126 uses: actions-rs/cargo@v1127 with:128 command: install129 args: cross130131 - name: ARM gcc132 if: ${{ startsWith(matrix.target, 'aarch64-unknown-linux-') }}133 run: sudo apt install gcc-aarch64-linux-gnu134135 - name: Musl gcc136 if: ${{ endsWith(matrix.target, '-musl') }}137 run: sudo apt install musl musl-tools138139 - name: Run cross build140 if: ${{ startsWith(matrix.target, 'aarch64-unknown-linux-') }}141 shell: bash142 run: cross build --bin=jrsonnet --release --target ${{ matrix.target }} ${{ env.EXPERIMENTAL_FLAGS }}143144 - name: Run build145 if: ${{ !startsWith(matrix.target, 'aarch64-unknown-linux-') }}146 uses: actions-rs/cargo@v1147 with:148 command: build149 args: --bin=jrsonnet --release --target ${{ matrix.target }} ${{ env.EXPERIMENTAL_FLAGS }}150151 - name: Package152 shell: bash153 run: |154 cd target/${{ matrix.target }}/release155156 cp ${{ matrix.bin }} ../../../${{ matrix.name }}157 cd -158159 - name: Generate SHA-256160 run: shasum -a 256 ${{ matrix.name }} > ${{ matrix.name }}.sha256161162 - name: Publish163 uses: softprops/action-gh-release@v1164 with:165 draft: true166 files: "jrsonnet*"167 env:168 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}