diff --git a/.github/workflows/benchmarks.yml b/.github/workflows/benchmarks.yml new file mode 100644 index 00000000..a46a41bb --- /dev/null +++ b/.github/workflows/benchmarks.yml @@ -0,0 +1,26 @@ +name: Performance monitoring +on: + push: + branches: + - "master" + pull_request: + + +jobs: + benchmarks: + strategy: + matrix: + os: [ubuntu-latest, macos-latest, windows-latest] + jvm: [17,19] + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v3 + - uses: coursier/cache-action@v6 + - uses: actions/setup-java@v3 + with: + distribution: 'temurin' + java-version: ${{ matrix.jvm }} + - run: ./mill j${{ matrix.jvm }}.benchmarks.test -f1 -o j${{ matrix.jvm }}-${{ matrix.os }}.bench -rff j${{ matrix.jvm }}-${{ matrix.os }}.json -rf json + - uses: actions/upload-artifact@v3 + with: + path: out/j${{ matrix.jvm }}/benchmarks/test/jmhRun.dest/* diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index eebb15ef..1ef511ac 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,9 +1,6 @@ name: SLinC CI on: - push: - -env: - JACOCO_VERSION: 0.8.8 + pull_request: jobs: @@ -52,22 +49,4 @@ jobs: uses: codecov/codecov-action@v3 with: directory: out/scoverage/xmlReportAll.dest - flags: unittests - # benchmarks: - # needs: unit-tests - # strategy: - # matrix: - # os: [ubuntu-latest, macos-latest, windows-latest] - # jvm: [17,19] - # runs-on: ${{ matrix.os }} - # steps: - # - uses: actions/checkout@v3 - # - uses: coursier/cache-action@v6 - # - uses: actions/setup-java@v3 - # with: - # distribution: 'temurin' - # java-version: ${{ matrix.jvm }} - # - run: ./mill j${{ matrix.jvm }}.benchmarks.test -f1 -o j${{ matrix.jvm }}-${{ matrix.os }}.bench -rff j${{ matrix.jvm }}-${{ matrix.os }}.json -rf json - # - uses: actions/upload-artifact@v3 - # with: - # path: out/j${{ matrix.jvm }}/benchmarks/test/jmhRun.dest/* + flags: unittests \ No newline at end of file