Add capability to select the cpp file #117
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: FPP CI | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
permissions: | |
contents: read | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '11' | |
distribution: 'temurin' | |
cache: 'sbt' | |
- name: Install Scala | |
run: | | |
curl -fL https://github.com/coursier/launchers/raw/master/cs-x86_64-pc-linux.gz | gzip -d > cs | |
chmod +x cs | |
echo Y | ./cs setup | |
- name: Install fpp tools | |
run: compiler/install | |
- name: Run sbt tests | |
run: | | |
cd compiler/ | |
sbt test | |
- name: Run fpp tests | |
run: | | |
export PATH=~/.local/share/coursier/bin:$PATH | |
cd compiler/ | |
./test | |
- name: Clean up | |
run: | | |
cd compiler/ | |
./clean |