Skip to content

Commit

Permalink
chore: add workflow to trigger cc (#22060)
Browse files Browse the repository at this point in the history
Superseeds #22055

When working on capture checking, error messages might change if we
compile using the cc library or the non-cc library.
Usually, this errors are not catched when running the workflows on each
PR and are only detected on nightly builds.
The following PR introduces a new workflow that is trigger on each merge
to main and on each change to cc related files.
  • Loading branch information
hamzaremmal authored Dec 2, 2024
2 parents 300043e + 790a50a commit d40009a
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/test-cc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Scala 3 with Capture Checking

on:
push:
branches:
- main
pull_request:
paths:
- .github/workflows/test-cc.yml
- scala2-library-cc/**
- scala2-library-cc-tasty/**
- compiler/src/dotty/tools/dotc/cc/**

env:
DOTTY_CI_RUN: true
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}

jobs:
suite-with-stdlib-cc:
name: Test Suite with the CC Standard Library
runs-on: ubuntu-latest
steps:
- name: Git Checkout
uses: actions/checkout@v4
- name: Test with Scala 2 library with CC TASTy
run: ./project/scripts/sbt ";set ThisBuild/Build.scala2Library := Build.Scala2LibraryCCTasty ;scala3-bootstrapped/test"

0 comments on commit d40009a

Please sign in to comment.