Skip to content

Commit 8cc6a24

Browse files
committed
setup actions
1 parent 3479fe5 commit 8cc6a24

2 files changed

Lines changed: 65 additions & 0 deletions

File tree

.github/workflows/daily-build.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Daily Build
2+
3+
on:
4+
schedule:
5+
- cron: "0 6 * * *"
6+
workflow_dispatch:
7+
8+
env:
9+
CARGO_TERM_COLOR: always
10+
11+
jobs:
12+
build:
13+
name: Build (${{ matrix.os }})
14+
runs-on: ${{ matrix.os }}
15+
strategy:
16+
matrix:
17+
os: [ubuntu-latest, windows-latest]
18+
defaults:
19+
run:
20+
working-directory: agentic-pipelines
21+
steps:
22+
- uses: actions/checkout@v4
23+
24+
- uses: dtolnay/rust-toolchain@stable
25+
26+
- uses: Swatinem/rust-cache@v2
27+
with:
28+
workspaces: agentic-pipelines
29+
30+
- name: Build
31+
run: cargo build --verbose
32+
33+
- name: Run tests
34+
run: cargo test --verbose

.github/workflows/rust-tests.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Rust Tests
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- "agentic-pipelines/**"
7+
8+
env:
9+
CARGO_TERM_COLOR: always
10+
11+
jobs:
12+
test:
13+
name: Build & Test
14+
runs-on: ubuntu-latest
15+
defaults:
16+
run:
17+
working-directory: agentic-pipelines
18+
steps:
19+
- uses: actions/checkout@v4
20+
21+
- uses: dtolnay/rust-toolchain@stable
22+
23+
- uses: Swatinem/rust-cache@v2
24+
with:
25+
workspaces: agentic-pipelines
26+
27+
- name: Build
28+
run: cargo build --verbose
29+
30+
- name: Run tests
31+
run: cargo test --verbose

0 commit comments

Comments
 (0)