From ed817ae8c2c027a0af4664c26884d4b6356da9f1 Mon Sep 17 00:00:00 2001 From: Josh Matthews Date: Sun, 21 Nov 2021 16:02:39 -0500 Subject: [PATCH] Replace travis and appveyor with github actions. --- .github/workflows/main.yml | 71 ++++++++++++++++++++++++++++++++++++++ .travis.yml | 7 ---- appveyor.yml | 22 ------------ 3 files changed, 71 insertions(+), 29 deletions(-) create mode 100644 .github/workflows/main.yml delete mode 100644 .travis.yml delete mode 100644 appveyor.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..da476ee --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,71 @@ +name: Run CI +on: + push: + branches: ["**"] + pull_request: + branches: ["**"] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +env: + RUST_BACKTRACE: 1 + SHELL: /bin/bash + +jobs: + linux-ci: + name: Linux + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: 2 + - name: Setup Rust + uses: actions-rs/toolchain@v1 + with: + toolchain: stable + default: true + override: true + - name: Build + run: cargo build + - name: Tests + run: cargo test --all + + mac-ci: + name: macOS + runs-on: macos-latest + + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: 2 + - name: Setup Rust + uses: actions-rs/toolchain@v1 + with: + toolchain: stable + default: true + override: true + - name: Build + run: cargo build + - name: Tests + run: cargo test --all + + windows-ci: + name: Linux + runs-on: windows-latest + + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: 2 + - name: Setup Rust + uses: actions-rs/toolchain@v1 + with: + toolchain: stable + default: true + override: true + - name: Build + run: cargo build + - name: Tests + run: cargo test --all diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 0b2b076..0000000 --- a/.travis.yml +++ /dev/null @@ -1,7 +0,0 @@ -language: rust -rust: - - nightly - -os: - - linux - - osx diff --git a/appveyor.yml b/appveyor.yml deleted file mode 100644 index 365948d..0000000 --- a/appveyor.yml +++ /dev/null @@ -1,22 +0,0 @@ -environment: - matrix: - - TARGET: x86_64-pc-windows-msvc - - TARGET: i686-pc-windows-msvc - - TARGET: x86_64-pc-windows-gnu - -platform: - - x64 - -install: - - ps: Start-FileDownload "https://static.rust-lang.org/dist/rust-nightly-${env:TARGET}.exe" - - rust-nightly-%TARGET%.exe /VERYSILENT /NORESTART /DIR="C:\Program Files (x86)\Rust" - - SET PATH=C:\msys64\mingw64\bin;C:\msys64\usr\bin\;%PATH% - - SET PATH=%PATH%;C:\Program Files (x86)\Rust\bin - - SET RUST_BACKTRACE=1 - - rustc -V - - cargo -V - -build: false - -test_script: - - cargo test --verbose