-
Notifications
You must be signed in to change notification settings - Fork 17
43 lines (40 loc) · 1.26 KB
/
ci.yml
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
name: CI
on: [push, pull_request]
jobs:
build-cli:
name: Build compiler
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: 1.72.0
override: true
- name: "Build Isograph with cargo"
run: cargo build --target x86_64-apple-darwin --release
- uses: actions/upload-artifact@v2
with:
name: isograph_cli-macos-x64
path: target/x86_64-apple-darwin/release/isograph_cli
if-no-files-found: error
build-projects:
name: Build projects
runs-on: macos-latest
needs: [build-cli]
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: 1.72.0
override: true
- name: "Download cli binary"
uses: actions/download-artifact@v2
with:
name: isograph_cli-macos-x64
path: artifacts/macos-x64
- name: Make artifact executable
run: chmod +x ./artifacts/macos-x64/isograph_cli
- name: "Build project"
run: ./artifacts/macos-x64/isograph_cli --config ./demos/graphql-conf-2023-demo/isograph.config.json
- name: "Check working directory status"
run: "./scripts/check-git-status.sh"