Skip to content

Commit 1462ba8

Browse files
committed
update github action
1 parent 3564acb commit 1462ba8

File tree

1 file changed

+23
-3
lines changed

1 file changed

+23
-3
lines changed

.github/workflows/ci.yaml

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,37 @@ env:
1010
CARGO_TERM_COLOR: always
1111

1212
jobs:
13-
build:
13+
test:
1414

15-
runs-on: ubuntu-latest
15+
runs-on: ${{ matrix.os }}
16+
strategy:
17+
matrix:
18+
os: [ macos-latest, ubuntu-latest, windows-latest ]
19+
rust-version: [ stable, beta, nightly, 1.77 ]
1620

1721
steps:
1822
- uses: actions/checkout@v4
19-
- name: Setup
23+
- name: Setup TK/TCL
24+
if: runner.os == 'Linux'
2025
run: |
2126
sudo apt-get update
2227
sudo apt-get install tk-dev
28+
29+
- name: Setup TK/TCL
30+
if: runner.os == 'macOS'
31+
run: |
32+
brew install tcl-tk
33+
echo 'export PATH="/usr/local/opt/tcl-tk/bin:$PATH"' >> $GITHUB_ENV
34+
echo 'export LDFLAGS="-L/usr/local/opt/tcl-tk/lib"' >> $GITHUB_ENV
35+
echo 'export CPPFLAGS="-I/usr/local/opt/tcl-tk/include"' >> $GITHUB_ENV
36+
37+
- name: Setup Rust
38+
uses: dtolnay/rust-toolchain@stable
39+
with:
40+
toolchain: ${{ matrix.rust-version }}
41+
2342
- name: Build
2443
run: cargo build
44+
2545
- name: Run tests
2646
run: cargo test

0 commit comments

Comments
 (0)