File tree Expand file tree Collapse file tree 1 file changed +23
-3
lines changed
Expand file tree Collapse file tree 1 file changed +23
-3
lines changed Original file line number Diff line number Diff line change 1010 CARGO_TERM_COLOR : always
1111
1212jobs :
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
You can’t perform that action at this time.
0 commit comments