Недоделанные уникальные типы с контекстами #48
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: Build & Test | |
on: [push, pull_request] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
ksc: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: true | |
- name: Build | |
run: cargo build --verbose -p ksc | |
- name: Run tests | |
run: cargo test --verbose -p ksc | |
ksc-java: | |
needs: ksc | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: true | |
# https://github.com/marketplace/actions/setup-java-jdk | |
- name: Setup Java 8 JDK | |
uses: actions/[email protected] | |
with: | |
# Use minimum supported Java version. | |
# Actually, the generated code should be compatible with Java 6 | |
java-version: 8 | |
distribution: temurin | |
- name: Build | |
run: cargo build --verbose -p ksc-java | |
- name: Run tests | |
run: cargo test --verbose -p ksc-java | |
cli: | |
needs: | |
- ksc | |
- ksc-java | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: true | |
- name: Build | |
run: cargo build --verbose | |
- name: Run tests | |
run: cargo test --verbose | |
ksc-compatible: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: true | |
- name: Build | |
run: cargo build --verbose --features compatible -p ksc | |
- name: Run tests | |
run: cargo test --verbose --features compatible -p ksc |