Skip to content

Commit 19b9a4a

Browse files
committed
Fix formatting
1 parent c52d50e commit 19b9a4a

File tree

1 file changed

+86
-90
lines changed

1 file changed

+86
-90
lines changed

.github/workflows/ci.yaml

+86-90
Original file line numberDiff line numberDiff line change
@@ -1,102 +1,98 @@
11
---
2-
name: CI
3-
on:
4-
pull_request:
5-
push:
6-
branches:
7-
- "master"
8-
schedule:
9-
- cron: "0 16 * * 1" # 8am PST every Monday
10-
jobs:
11-
lint:
12-
name: Lints
13-
runs-on: ubuntu-latest
14-
steps:
15-
- uses: actions/checkout@v4
16-
with:
2+
name: CI
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- "master"
8+
schedule:
9+
- cron: "0 16 * * 1" # 8am PST every Monday
10+
jobs:
11+
lint:
12+
name: Lints
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
with:
1717
submodules: recursive
18+
- name: Install rust
19+
run: |
20+
rustup -V
21+
rustup set profile minimal
22+
rustup toolchain install stable
23+
rustup show
1824
19-
- name: Install rust
20-
run: |
21-
rustup -V
22-
rustup set profile minimal
23-
rustup toolchain install stable
24-
rustup show
25+
- name: Check Formatting
26+
run: cargo fmt --check --all
2527

26-
- name: Check Formatting
27-
run: cargo fmt --check --all
28+
- name: Clippy
29+
run: cargo clippy --check --workspace --all-features
2830

29-
- name: Clippy
30-
run: cargo clippy --check --workspace --all-features
31-
build:
32-
name: Build and test
33-
runs-on: ${{ matrix.os }}
34-
strategy:
35-
matrix:
36-
include:
37-
# Ubuntus
38-
- os: ubuntu-latest
39-
binary_target: x86_64-unknown-linux-musl
40-
needs_musl: true
41-
toolchain: stable
42-
- os: ubuntu-20.04
43-
binary_target: x86_64-unknown-linux-gnu
44-
toolchain: stable
45-
46-
# MacOS ARM
47-
- os: macos-latest
48-
binary_target: aarch64-apple-darwin
49-
toolchain: stable
50-
51-
# Windows
52-
- os: windows-latest
53-
binary_target: x86_64-pc-windows-msvc
54-
toolchain: stable
55-
56-
# Nightly Rust
57-
- os: ubuntu-latest
58-
binary_target: x86_64-unknown-linux-gnu
31+
build:
32+
name: Build and test
33+
runs-on: ${{ matrix.os }}
34+
strategy:
35+
matrix:
36+
include:
37+
# Ubuntus
38+
- os: ubuntu-latest
39+
binary_target: x86_64-unknown-linux-musl
40+
needs_musl: true
41+
toolchain: stable
42+
- os: ubuntu-20.04
43+
binary_target: x86_64-unknown-linux-gnu
44+
toolchain: stable
45+
# MacOS ARM
46+
- os: macos-latest
47+
binary_target: aarch64-apple-darwin
48+
toolchain: stable
49+
# Windows
50+
- os: windows-latest
51+
binary_target: x86_64-pc-windows-msvc
52+
toolchain: stable
53+
# Nightly Rust
54+
- os: ubuntu-latest
55+
binary_target: x86_64-unknown-linux-gnu
5956
toolchain: nightly
57+
# MSRV
58+
- os: ubuntu-latest
59+
binary_target: x86_64-unknown-linux-gnu
60+
toolchain: 1.62.1
61+
steps:
62+
- uses: actions/checkout@v4
63+
with:
64+
submodules: recursive
6065

61-
# MSRV
62-
- os: ubuntu-latest
63-
binary_target: x86_64-unknown-linux-gnu
64-
toolchain: 1.62.1
65-
steps:
66-
- uses: actions/checkout@v4
67-
with:
68-
submodules: recursive
69-
70-
- name: Install musl tools
71-
if: matrix.needs_musl
72-
run: |
73-
sudo apt-get install musl-tools
74-
sudo ln -s /usr/bin/musl-gcc /usr/bin/musl-g++
66+
- name: Install musl tools
67+
if: matrix.needs_musl
68+
run: |
69+
sudo apt-get install musl-tools
70+
sudo ln -s /usr/bin/musl-gcc /usr/bin/musl-g++
7571
76-
# Required for bindgen on Windows
77-
- name: Install LLVM and Clang
78-
uses: KyleMayes/install-llvm-action@v2
79-
if: matrix.os == 'windows-latest'
80-
with:
81-
version: "10.0"
82-
directory: ${{ runner.temp }}/llvm-10.0/
72+
# Required for bindgen on Windows
73+
- name: Install LLVM and Clang
74+
uses: KyleMayes/install-llvm-action@v2
75+
if: matrix.os == 'windows-latest'
76+
with:
77+
version: "10.0"
78+
directory: ${{ runner.temp }}/llvm-10.0/
8379

84-
- name: Set CMake generator
85-
if: matrix.os == 'windows-latest'
86-
run: |
87-
echo "CMAKE_GENERATOR=NMake Makefiles" >> $env:GITHUB_ENV
88-
echo "${{ env.CMAKE_GENERATOR }}"
89-
echo $env:CMAKE_GENERATOR
80+
- name: Set CMake generator
81+
if: matrix.os == 'windows-latest'
82+
run: |
83+
echo "CMAKE_GENERATOR=NMake Makefiles" >> $env:GITHUB_ENV
84+
echo "${{ env.CMAKE_GENERATOR }}"
85+
echo $env:CMAKE_GENERATOR
9086
91-
- name: Install rust ${{ matrix.binary_target }}
92-
run: |
93-
rustup -V
94-
rustup set profile minimal
95-
rustup toolchain install --force-non-host ${{ matrix.toolchain }}-${{ matrix.binary_target }}
96-
rustup show
87+
- name: Install rust ${{ matrix.binary_target }}
88+
run: |
89+
rustup -V
90+
rustup set profile minimal
91+
rustup toolchain install --force-non-host ${{ matrix.toolchain }}-${{ matrix.binary_target }}
92+
rustup show
9793
98-
- name: Build
99-
run: cargo build --workspace --all-features
94+
- name: Build
95+
run: cargo build --workspace --all-features
10096

101-
- name: Test
102-
run: cargo test --workspace --all-features
97+
- name: Test
98+
run: cargo test --workspace --all-features

0 commit comments

Comments
 (0)