-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #477 from ozgurakgun/warnings
deal with warnings
- Loading branch information
Showing
13 changed files
with
95 additions
and
26 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
name: "Builds without any warnings" | ||
|
||
on: | ||
push: | ||
branches: | ||
- main # run for pushes to the main branch. other branches need to create a PR if they want testing. | ||
paths: | ||
- conjure_oxide/** | ||
- solvers/** | ||
- crates/** | ||
- Cargo.* | ||
- .github/workflows/warnings.yml | ||
pull_request: | ||
paths: | ||
- conjure_oxide/** | ||
- solvers/** | ||
- crates/** | ||
- Cargo.* | ||
- .github/workflows/warnings.yml | ||
workflow_dispatch: | ||
|
||
env: | ||
SCCACHE_GHA_ENABLED: "true" | ||
RUSTC_WRAPPER: "sccache" | ||
SCCACHE_GHA_VERSION: 4 | ||
|
||
jobs: | ||
build-and-test: | ||
name: "Build and Test" | ||
timeout-minutes: 10 | ||
strategy: | ||
# run all combinations of the matrix even if one combination fails. | ||
fail-fast: false | ||
matrix: | ||
rust_release: | ||
- stable | ||
conjure_version: | ||
- 2.5.1 | ||
os: | ||
- ubuntu-latest | ||
include: | ||
- os: ubuntu-latest | ||
release_suffix: linux | ||
|
||
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Run sccache-cache | ||
uses: mozilla-actions/[email protected] | ||
|
||
- run: rustup update ${{ matrix.rust_release }} && rustup default ${{ matrix.rust_release }} | ||
|
||
- run: RUSTFLAGS="-D warnings" cargo build -vv --workspace | ||
|
||
examples: | ||
name: "Build Examples" | ||
timeout-minutes: 10 | ||
strategy: | ||
# run all combinations of the matrix even if one combination fails. | ||
fail-fast: false | ||
matrix: | ||
rust_release: | ||
- stable | ||
os: | ||
- ubuntu-latest | ||
|
||
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Run sccache-cache | ||
uses: mozilla-actions/[email protected] | ||
|
||
- run: rustup update ${{ matrix.rust_release }} && rustup default ${{ matrix.rust_release }} | ||
|
||
- run: RUSTFLAGS="-D warnings" cargo build -vv --workspace --examples |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -380,7 +380,7 @@ where | |
}); | ||
|
||
// Write the JSON log | ||
write!(writer, "{}\n", log) | ||
writeln!(writer, "{}", log) | ||
} | ||
} | ||
|
||
|
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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