Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
lijunchen committed Aug 28, 2024
0 parents commit 61f46b1
Show file tree
Hide file tree
Showing 8 changed files with 766 additions and 0 deletions.
56 changes: 56 additions & 0 deletions .github/workflows/jobs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/target
Loading

0 comments on commit 61f46b1

Please sign in to comment.