forgot about windows #11
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Rust | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
lint-linux: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: sudo apt-get update && sudo apt-get install -y libwayland-dev libxkbcommon-dev pkg-config libudev-dev libinput-dev libdrm-dev libgbm-dev build-essential | |
- name: depends | |
run: | | |
cd .. | |
git clone https://github.com/bgkillas/kalc-lib | |
cd kalc | |
- name: fmt | |
run: cargo fmt --check | |
- name: lint-min | |
run: cargo clippy --no-default-features --features "rug,fastnum" -- -D clippy::all | |
- name: lint-all | |
run: cargo clippy -- -D clippy::all | |
lint-windows: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: depends | |
run: | | |
cd .. | |
git clone https://github.com/bgkillas/kalc-lib | |
cd kalc | |
- name: Install Rust | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
target: x86_64-pc-windows-gnu | |
profile: minimal | |
override: true | |
- name: Install MSYS2 and GMP | |
uses: msys2/setup-msys2@v2 | |
with: | |
update: true | |
install: >- | |
base-devel | |
mingw-w64-x86_64-rust | |
mingw-w64-x86_64-gcc | |
mingw-w64-x86_64-pkg-config | |
mingw-w64-x86_64-gmp | |
mingw-w64-x86_64-mpfr | |
mingw-w64-x86_64-make | |
mingw-w64-x86_64-clang | |
m4 | |
make | |
python | |
openssl | |
git | |
mingw-w64-x86_64-gn | |
mingw-w64-x86_64-fontconfig | |
mingw-w64-x86_64-libpng | |
mingw-w64-x86_64-freetype | |
expat | |
llvm | |
ninja | |
msystem: MINGW64 | |
- name: fmt | |
shell: msys2 {0} | |
env: | |
CARGO_HOME: /mingw64/.cargo | |
RUSTUP_HOME: /mingw64/.rustup | |
PKG_CONFIG_PATH: /mingw64/lib/pkgconfig | |
PATH: /mingw64/bin:$PATH | |
CC: clang | |
run: | | |
cargo fmt --check | |
- name: lint-tiny | |
shell: msys2 {0} | |
env: | |
CARGO_HOME: /mingw64/.cargo | |
RUSTUP_HOME: /mingw64/.rustup | |
PKG_CONFIG_PATH: /mingw64/lib/pkgconfig | |
PATH: /mingw64/bin:$PATH | |
CC: clang | |
run: | | |
cargo clippy --no-default-features --features "rug,fastnum" -- -D clippy::all | |
- name: lint-full | |
shell: msys2 {0} | |
env: | |
CARGO_HOME: /mingw64/.cargo | |
RUSTUP_HOME: /mingw64/.rustup | |
PKG_CONFIG_PATH: /mingw64/lib/pkgconfig | |
PATH: /mingw64/bin:$PATH | |
CC: clang | |
run: | | |
cargo clippy -- -D clippy::all | |
lint-macos: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: depends | |
run: | | |
cd .. | |
git clone https://github.com/bgkillas/kalc-lib | |
cd kalc | |
- name: fmt | |
run: cargo fmt --check | |
- name: lint-min | |
run: cargo clippy --no-default-features --features "rug,fastnum" -- -D clippy::all | |
- name: lint-all | |
run: cargo clippy -- -D clippy::all |