-
Notifications
You must be signed in to change notification settings - Fork 0
75 lines (59 loc) · 1.7 KB
/
ci.yml
File metadata and controls
75 lines (59 loc) · 1.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# InQL CI — Incan library package
#
# Builds the Incan compiler from source in CI, then runs the InQL package
# checks against that local binary. Keeping this workflow self-contained avoids
# a hard dependency on a remote composite action path staying in sync.
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
concurrency:
group: ci-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
CARGO_TERM_COLOR: always
RUST_BACKTRACE: 1
INCAN_NO_BANNER: 1
jobs:
inql:
name: InQL (build + test)
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
steps:
- name: Check out InQL
uses: actions/checkout@v4
- name: Check out Incan
uses: actions/checkout@v4
with:
repository: dannys-code-corner/incan
ref: main
path: incan
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
- name: Cache Incan build artifacts
uses: Swatinem/rust-cache@v2
with:
workspaces: incan -> target
- name: Build Incan compiler
working-directory: incan
run: cargo build --locked --bin incan
- name: Expose local Incan binary on PATH
run: echo "$GITHUB_WORKSPACE/incan/target/debug" >> "$GITHUB_PATH"
- name: Show toolchain
run: |
incan --version
rustc --version
- name: Format check (package .incn)
run: make fmt-check
- name: Build library
run: make build
- name: Run tests
run: make test
- name: Pub consumer smoke check
run: make smoke-consumer