Skip to content

Commit

Permalink
Simplify CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Friendseeker committed Oct 14, 2024
1 parent d7a4dfe commit 25720b9
Showing 1 changed file with 4 additions and 56 deletions.
60 changes: 4 additions & 56 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,24 +12,12 @@ jobs:
- os: ubuntu-latest
java: 8
jobtype: 1
- os: ubuntu-latest
java: 11
jobtype: 1
- os: ubuntu-latest
java: 21
- os: windows-latest
java: 8
jobtype: 1
- os: windows-latest
java: 8
jobtype: 2
- os: ubuntu-latest
java: 21
jobtype: 3
- os: ubuntu-latest
java: 21
jobtype: 4
- os: ubuntu-latest
java: 21
jobtype: 5
jobtype: 1
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
Expand All @@ -45,45 +33,5 @@ jobs:
- name: Build and test (1)
if: ${{ matrix.jobtype == 1 }}
shell: bash
run: bin/run-ci.sh
- name: Build and test (2)
if: ${{ matrix.jobtype == 2 }}
shell: bash
run: |
sbt -v -Dfile.encoding=UTF-8 -Dsbt.supershell=never "Test/compile" "crossTestBridges" "zincRoot/test"
# "zincScripted/Test/run"
- name: Build and test (3)
if: ${{ matrix.jobtype == 3 }}
shell: bash
run: |
sbt -v -Dfile.encoding=UTF-8 scalafmtCheckAll scalafmtSbtCheck
- name: Benchmark (Scalac) (4)
if: ${{ matrix.jobtype == 4 }}
shell: bash
run: |
sbt -v -Dfile.encoding=UTF-8 "-Dbenchmark.pattern=.*Scalac.*" "runBenchmarks"
- name: Benchmark (Shapeless) (5)
if: ${{ matrix.jobtype == 5 }}
shell: bash
run: |
sbt -v -Dfile.encoding=UTF-8 "-Dbenchmark.pattern=.*Shapeless.*" "runBenchmarks"
- name: Checkout Target Branch (4, 5)
if: ${{ github.event_name == 'pull_request' && (matrix.jobtype == 4 || matrix.jobtype == 5) }}
uses: actions/checkout@v4
with:
clean: false
ref: ${{ github.event.pull_request.base.ref }}
- name: Setup SBT
uses: sbt/setup-sbt@v1
if: ${{ github.event_name == 'pull_request' && (matrix.jobtype >= 4 && matrix.jobtype <= 6) }}
- name: Benchmark (Scalac) against Target Branch (4)
if: ${{ github.event_name == 'pull_request' && matrix.jobtype == 4 }}
shell: bash
run: |
sbt -v -Dfile.encoding=UTF-8 "-Dbenchmark.pattern=.*Scalac.*" "zincBenchmarks3/Jmh/clean" "runBenchmarks"
- name: Benchmark (Shapeless) against Target Branch (5)
if: ${{ github.event_name == 'pull_request' && matrix.jobtype == 5 }}
shell: bash
run: |
sbt -v -Dfile.encoding=UTF-8 "-Dbenchmark.pattern=.*Shapeless.*" "zincBenchmarks3/Jmh/clean" "runBenchmarks"
sbt -v -Dfile.encoding=UTF-8 -Dsbt.supershell=never "testOnly *ParallelGzipOutputStreamSpecification*"

0 comments on commit 25720b9

Please sign in to comment.