Skip to content

Commit

Permalink
Set up GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Seeker14491 committed Aug 23, 2020
1 parent 4e90ee7 commit d386482
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/main.yml
@@ -0,0 +1,46 @@
on:
push:
branches: [ github-actions ]

env:
CARGO_TERM_COLOR: always
RUST_BACKTRACE: 1

jobs:
linux:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- run: rustup component add clippy
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
- name: Run clippy
uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-features

windows:
runs-on: windows-latest

steps:
- uses: actions/checkout@v2
- run: CALL "ci_extra\install_llvm.bat"
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose

mac:
runs-on: macos-latest

steps:
- run: rustup component add rustfmt
- uses: actions/checkout@v2
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
4 changes: 4 additions & 0 deletions ci_extra/install_llvm.bat
@@ -0,0 +1,4 @@
@ECHO OFF

curl -fsSL -o "LLVM-10.0.0-win64.exe" "https://github.com/llvm/llvm-project/releases/download/llvmorg-10.0.0/LLVM-10.0.0-win64.exe"
LLVM-10.0.0-win64.exe /S

0 comments on commit d386482

Please sign in to comment.