forked from setzer22/egui_node_graph
-
Notifications
You must be signed in to change notification settings - Fork 7
30 lines (25 loc) · 859 Bytes
/
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
on:
push:
pull_request:
schedule: [cron: "40 1 * * *"]
name: CI
jobs:
test:
name: cargo test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: rustup default stable && rustup update stable
- run: cargo test --all-features
- run: cargo fmt --all -- --check
- run: cargo clippy --workspace --all-targets --all-features -- -D warnings -W clippy::all
publish:
needs: [test]
runs-on: ubuntu-latest
if: ${{ contains(github.event.head_commit.message, 'egui_node_graph2@') && github.event_name == 'push' && github.ref == 'refs/heads/main' }}
steps:
- uses: actions/checkout@v4
- run: rustup default stable && rustup update stable
- name: cargo publish
run: cargo publish --token ${{ secrets.CARGO_TOKEN }}
working-directory: "egui_node_graph2"