-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GitHub Actions: run clippy, fmt; remove other CI (#365)
Consolidates the multitude of CI systems, replacing Azure, SourceHut, and AppVeyor with GitHub Actions, which now also runs clippy and fmt. See #352 * Add task to run clippy * Add task to check formatting * Test on 1.44.1 toolchain * Update readme: status badge and downloads on GitHub Actions * Remove strip binary task, leave it unstripped to allow debugging for now * Rename task to install dependencies * Remove Azure Pipelines * Remove sr.ht SourceHut CI * Remove AppVeyor
- Loading branch information
Showing
5 changed files
with
14 additions
and
96 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -17,9 +17,10 @@ jobs: | |
- name: Install Rust | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: stable | ||
toolchain: 1.44.1 | ||
components: clippy, rustfmt | ||
default: true | ||
- name: (Linux) Install libxcb-composite | ||
- name: Install dependencies | ||
if: matrix.os == 'ubuntu-latest' | ||
run: | | ||
sudo apt-get update | ||
|
@@ -29,9 +30,13 @@ jobs: | |
cargo build --verbose --release | ||
env: | ||
MACOSX_DEPLOYMENT_TARGET: 10.14 | ||
- name: (Linux/MacOS) Strip binary | ||
if: matrix.os != 'windows-latest' | ||
run: strip target/release/stevenarella | ||
- name: Run clippy | ||
uses: actions-rs/[email protected] | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
args: --all-targets -- -D warnings | ||
- name: Check formatting | ||
run: cargo fmt --all -- --check | ||
- name: Move binary | ||
run: | | ||
if [[ ${{ matrix.os }} == windows ]]; then | ||
|
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.