@@ -7,8 +7,10 @@ name: CI
77on :
88 push :
99 branches : [main]
10+ paths-ignore : ['**.md', 'docs/**', 'LICENSE', '.editorconfig']
1011 pull_request :
1112 branches : [main]
13+ paths-ignore : ['**.md', 'docs/**', 'LICENSE', '.editorconfig']
1214
1315# Cancel in-progress runs for the same branch
1416concurrency :
8284 # - name: Test
8385 # run: go test ./...
8486
87+ # --- Rust ---
88+ # - name: Setup Rust
89+ # uses: dtolnay/rust-toolchain@efa25f7f19611383d5b0ccf2d1c8914531636bf9 # master
90+ # with:
91+ # toolchain: stable
92+ # components: rustfmt, clippy
93+ #
94+ # - name: Rust cache
95+ # uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1
96+ #
97+ # - name: Check formatting
98+ # run: cargo fmt --all -- --check
99+ #
100+ # - name: Clippy
101+ # run: cargo clippy --all-targets --all-features -- -D warnings
102+ #
103+ # - name: Test
104+ # run: cargo test --all-features
105+ #
106+ # - name: Build
107+ # run: cargo build --release
108+
85109 # --- Generic (placeholder) ---
86110 - name : Placeholder
87111 run : |
88112 echo "CI workflow running"
89113 echo "Configure this workflow for your tech stack"
90- echo "See comments above for Node.js, Python, and Go examples"
114+ echo "See comments above for Node.js, Python, Go, and Rust examples"
115+
116+ # ============================================
117+ # TEMPLATE: Multi-OS matrix example
118+ # Uncomment and replace the 'build' job above to test across OSes.
119+ # ============================================
120+ # build-matrix:
121+ # strategy:
122+ # fail-fast: false
123+ # matrix:
124+ # os: [ubuntu-latest, macos-latest, windows-latest]
125+ # runs-on: ${{ matrix.os }}
126+ # timeout-minutes: 15
127+ # steps:
128+ # - name: Checkout
129+ # uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
130+ # - name: Build & Test
131+ # run: echo "Running on ${{ matrix.os }}"
0 commit comments