Skip to content

Commit

Permalink
GitHub Actions: run clippy, fmt; remove other CI (#365)
Browse files Browse the repository at this point in the history
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
iceiix authored Jul 5, 2020
2 parents dbca746 + 215318a commit e297342
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 96 deletions.
20 changes: 0 additions & 20 deletions .build.yml

This file was deleted.

15 changes: 10 additions & 5 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Stevenarella
[![builds.sr.ht status](https://builds.sr.ht/~iceiix/stevenarella.svg)](https://builds.sr.ht/~iceiix/stevenarella?)
[![Build Status](https://img.shields.io/endpoint.svg?url=https%3A%2F%2Factions-badge.atrox.dev%2Ficeiix%2Fstevenarella%2Fbadge%3Fref%3Dmaster&style=plastic)](https://actions-badge.atrox.dev/iceiix/stevenarella/goto?ref=master)

Multi-protocol Minecraft-compatible client written in Rust

Expand Down Expand Up @@ -56,8 +56,9 @@ Support for older protocols will _not_ be dropped as newer protocols are added.

## Downloads

Windows users can download pre-compiled builds from here: https://ci.appveyor.com/project/iceiix/stevenarella
(Select your platform, Click the artifacts tab and download Steven.zip)
Windows, Ubuntu Linux, and macOS users can download pre-compiled builds
from [GitHub Actions](https://actions-badge.atrox.dev/iceiix/stevenarella/goto?ref=master).
(Click the artifacts drop-down and select your platform.)

## Building

Expand Down
51 changes: 0 additions & 51 deletions appveyor.yml

This file was deleted.

17 changes: 0 additions & 17 deletions azure-pipelines.yml

This file was deleted.

0 comments on commit e297342

Please sign in to comment.