Skip to content

Commit

Permalink
Workflows and README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Stridsvagn69420 committed Oct 25, 2022
1 parent 1032fcf commit 4bdf5ec
Show file tree
Hide file tree
Showing 4 changed files with 126 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/build-linux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Build (Linux)

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
schedule:
- cron: '20 20 * * 3'

jobs:
build-linux:
name: x86_64-unknown-linux-gnu
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout Code
uses: actions/checkout@v2

- name: Install Rust Toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
components: clippy
override: true

- name: Compile Cyrkensia on Linux
run: cargo build --release --target=x86_64-unknown-linux-gnu
30 changes: 30 additions & 0 deletions .github/workflows/build-windows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Build (Windows)

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
schedule:
- cron: '20 20 * * 3'

jobs:
build-windows:
name: x86_64-pc-windows-msvc
runs-on: windows-latest
permissions:
contents: read
steps:
- name: Checkout Code
uses: actions/checkout@v2

- name: Install Rust Toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
components: clippy
override: true

- name: Compile Cyrkensia on Windows
run: cargo build --release --target=x86_64-pc-windows-msvc
57 changes: 57 additions & 0 deletions .github/workflows/cargo-clippy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# rust-clippy is a tool that runs a bunch of lints to catch common
# mistakes in your Rust code and help improve your Rust code.
# More details at https://github.com/rust-lang/rust-clippy
# and https://rust-lang.github.io/rust-clippy/

name: Clippy Tests

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
schedule:
- cron: '20 20 * * 4'

jobs:
cargo-clippy:
name: Cargo Clippy
runs-on: ubuntu-latest
permissions:
contents: read
security-events: write
steps:
- name: Checkout Code
uses: actions/checkout@v2

- name: Install Rust Toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
components: clippy
override: true

- name: Install clippy-sarif and sarif-fmt
run: cargo install clippy-sarif sarif-fmt

- name: cargo clippy
run:
cargo clippy
--all-features
--message-format=json -- --deny warnings | clippy-sarif | tee rust-clippy-results.sarif | sarif-fmt
continue-on-error: true

- name: Upload analysis results to GitHub
uses: github/codeql-action/upload-sarif@v1
with:
sarif_file: rust-clippy-results.sarif
wait-for-processing: true

- name: cargo test
run:
cargo test
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
# Cyrkensia
![Build (Windows)](https://github.com/Stridsvagn69420/Cyrkensia/actions/workflows/build-windows.yml/badge.svg?branch=master)
![Build (Linux)](https://github.com/Stridsvagn69420/Cyrkensia/actions/workflows/build-linux.yml/badge.svg?branch=master)
![Clippy](https://github.com/Stridsvagn69420/Cyrkensia/actions/workflows/cargo-clippy.yml/badge.svg?branch=master)
![docs.rs](https://docs.rs/cyrkensia/badge.svg)
![Version](https://img.shields.io/crates/v/cyrkensia.svg)
![License](https://img.shields.io/crates/l/cyrkensia.svg)
![Stars](https://img.shields.io/github/stars/Stridsvagn69420/Cyrkensia.svg)
![Downloads](https://img.shields.io/crates/d/cyrkensia.svg)

Server for [Azura](https://github.com/Stridsvagn69420/Azura) and [Shigure](https://github.com/Stridsvagn69420/Shigure) music repositories

<!--TODO: Add larger description here-->
Expand Down

0 comments on commit 4bdf5ec

Please sign in to comment.