We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 12733da commit f3ee5aaCopy full SHA for f3ee5aa
2 files changed
.github/workflows/codegen.yml
@@ -0,0 +1,26 @@
1
+name: codegen
2
+
3
+on:
4
+ push:
5
+ branches: [ master ]
6
+ pull_request:
7
8
+ workflow_dispatch:
9
10
+env:
11
+ CARGO_TERM_COLOR: always
12
13
+jobs:
14
+ codegen:
15
+ runs-on: ubuntu-latest
16
+ steps:
17
+ - uses: actions/checkout@v7
18
+ - name: Install
19
+ run: |
20
+ curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain nightly
21
+ rustup toolchain install nightly --allow-downgrade -c rustfmt
22
+ echo "$HOME/.cargo/bin" >> $GITHUB_PATH
23
+ - name: Check
24
25
+ ./codegen/codegen.sh
26
+ git diff --exit-code
codegen/codegen.sh
@@ -0,0 +1,8 @@
+#!/bin/bash
+set -ex
+cd "$(dirname "$BASH_SOURCE")/.."
+cargo run -p codegen
+cargo +nightly fmt
0 commit comments