-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (48 loc) · 1.3 KB
/
jobs.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
44
45
46
47
48
49
50
51
52
53
54
55
56
name: CI
on:
push:
branches: main
pull_request:
branches: main
env:
CARGO_TERM_COLOR: always
jobs:
test:
strategy:
fail-fast: false
matrix:
os:
- macos-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: dtolnay/[email protected]
with:
components: rustfmt, clippy
- name: Cargo cache
uses: actions/cache@v4
with:
key: ${{ runner.os }}-cargo-${{ hashFiles('Cargo.lock') }}
path: ~/.cargo/registry
- name: install MoonBit
run: |
curl -fsSLv https://cli.moonbitlang.com/install/unix.sh | bash -s
echo "$HOME/.moon/bin" >> $GITHUB_PATH
- name: Version
run: moon version --all
- name: Build
run: |
cargo build --release
./target/release/moon_dashboard --file repos.txt
- name: Install duckdb
run: brew install duckdb
- name: Query
run: duckdb -c ".read query.sql"
- name: Commit
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add data.csv
git commit -m "Update data.csv" || echo "No changes to commit"
- name: Push changes
run: git push