From 99172802c8fdea8c6d36b6870fc8243544cf2dec Mon Sep 17 00:00:00 2001 From: miampf Date: Fri, 19 Jan 2024 15:28:10 +0000 Subject: [PATCH] build: add build targets (#17) --- .cargo/config.toml | 2 ++ .github/workflows/rust.yml | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) create mode 100644 .cargo/config.toml diff --git a/.cargo/config.toml b/.cargo/config.toml new file mode 100644 index 0000000..16c7ebd --- /dev/null +++ b/.cargo/config.toml @@ -0,0 +1,2 @@ +[build] +target = ["x86_64-pc-windows-gnu", "x86_64-unknown-linux-gnu"] diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 10c94a8..d1b99f6 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -17,8 +17,8 @@ jobs: steps: - uses: actions/checkout@v3 - name: Build - run: cargo build --verbose + run: cargo build --verbose --target=x86_64-unknown-linux-gnu - name: Run tests - run: cargo test --verbose + run: cargo test --verbose --target=x86_64-unknown-linux-gnu - name: Run clippy - run: cargo clippy --verbose + run: cargo clippy --verbose --target=x86_64-unknown-linux-gnu