From c2ac93ac5f6e0aa7cb80686833b97231b2369265 Mon Sep 17 00:00:00 2001 From: Chris Simpkins Date: Fri, 15 May 2020 00:42:00 -0400 Subject: [PATCH 1/7] add macOS GH Actions CI testing --- .github/workflows/macosci.yml | 36 +++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/macosci.yml diff --git a/.github/workflows/macosci.yml b/.github/workflows/macosci.yml new file mode 100644 index 0000000..e442894 --- /dev/null +++ b/.github/workflows/macosci.yml @@ -0,0 +1,36 @@ +on: [push, pull_request] + +name: macOS CI + +jobs: + check: + name: macOS CI + runs-on: macos-latest + steps: + - name: Cache cargo registry + uses: actions/cache@v1 + with: + path: ~/.cargo/registry + key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }} + - name: Cache cargo index + uses: actions/cache@v1 + with: + path: ~/.cargo/git + key: ${{ runner.os }}-cargo-index-${{ hashFiles('**/Cargo.lock') }} + - name: Cache cargo build + uses: actions/cache@v1 + with: + path: target + key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('**/Cargo.lock') }} + + - uses: actions/checkout@v2 + - name: Install latest stable toolchain + uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: stable + + - name: Run cargo test + uses: actions-rs/cargo@v1 + with: + command: test From 32fd99906cc435e839d0d9135d57a07c9f9b6599 Mon Sep 17 00:00:00 2001 From: Chris Simpkins Date: Fri, 15 May 2020 00:42:13 -0400 Subject: [PATCH 2/7] add GNU/Linux GH Actions CI testing --- .github/workflows/linuxci.yml | 36 +++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/linuxci.yml diff --git a/.github/workflows/linuxci.yml b/.github/workflows/linuxci.yml new file mode 100644 index 0000000..7455ed2 --- /dev/null +++ b/.github/workflows/linuxci.yml @@ -0,0 +1,36 @@ +on: [push, pull_request] + +name: GNU/Linux CI + +jobs: + check: + name: GNU/Linux CI + runs-on: ubuntu-latest + steps: + - name: Cache cargo registry + uses: actions/cache@v1 + with: + path: ~/.cargo/registry + key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }} + - name: Cache cargo index + uses: actions/cache@v1 + with: + path: ~/.cargo/git + key: ${{ runner.os }}-cargo-index-${{ hashFiles('**/Cargo.lock') }} + - name: Cache cargo build + uses: actions/cache@v1 + with: + path: target + key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('**/Cargo.lock') }} + + - uses: actions/checkout@v2 + - name: Install latest stable toolchain + uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: stable + + - name: Run cargo test + uses: actions-rs/cargo@v1 + with: + command: test From 0c5b845fb896abd9b0c622808b6b20e64197a3ef Mon Sep 17 00:00:00 2001 From: Chris Simpkins Date: Fri, 15 May 2020 00:49:36 -0400 Subject: [PATCH 3/7] add Windows GH Actions CI testing --- .github/workflows/windowsci.yml | 36 +++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/windowsci.yml diff --git a/.github/workflows/windowsci.yml b/.github/workflows/windowsci.yml new file mode 100644 index 0000000..1af790c --- /dev/null +++ b/.github/workflows/windowsci.yml @@ -0,0 +1,36 @@ +on: [push, pull_request] + +name: Windows CI + +jobs: + check: + name: Windows CI + runs-on: windows-latest + steps: + - name: Cache cargo registry + uses: actions/cache@v1 + with: + path: ~/.cargo/registry + key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }} + - name: Cache cargo index + uses: actions/cache@v1 + with: + path: ~/.cargo/git + key: ${{ runner.os }}-cargo-index-${{ hashFiles('**/Cargo.lock') }} + - name: Cache cargo build + uses: actions/cache@v1 + with: + path: target + key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('**/Cargo.lock') }} + + - uses: actions/checkout@v2 + - name: Install latest stable toolchain + uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: stable + + - name: Run cargo test + uses: actions-rs/cargo@v1 + with: + command: test From b9b1b6f52683f5ca233f8114e7764a1d011b88b7 Mon Sep 17 00:00:00 2001 From: Chris Simpkins Date: Fri, 15 May 2020 00:59:50 -0400 Subject: [PATCH 4/7] add GH Action rustfmt --check workflow --- .github/workflows/fmt.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/workflows/fmt.yml diff --git a/.github/workflows/fmt.yml b/.github/workflows/fmt.yml new file mode 100644 index 0000000..dd944f8 --- /dev/null +++ b/.github/workflows/fmt.yml @@ -0,0 +1,16 @@ +on: [push, pull_request] + +name: Rust fmt check + +jobs: + check: + name: rustfmt + runs-on: ubuntu-latest + steps: + - name: Checkout source + - uses: actions/checkout@v2 + - name: Run rustfmt + run: | + rustup component add rustfmt + cargo fmt --version + cargo fmt -- --check || (echo "Please reformat your code with 'cargo fmt' (version $(cargo fmt --version))"; false) From e30ad422615c411e36ef254b69751b6ba9688c1d Mon Sep 17 00:00:00 2001 From: Chris Simpkins Date: Fri, 15 May 2020 01:03:04 -0400 Subject: [PATCH 5/7] fix formatting on GH Actions fmt workflow --- .github/workflows/fmt.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/fmt.yml b/.github/workflows/fmt.yml index dd944f8..7d0a4a5 100644 --- a/.github/workflows/fmt.yml +++ b/.github/workflows/fmt.yml @@ -1,15 +1,15 @@ on: [push, pull_request] -name: Rust fmt check +name: Rustfmt check jobs: - check: + fmt: name: rustfmt runs-on: ubuntu-latest steps: - name: Checkout source - - uses: actions/checkout@v2 - - name: Run rustfmt + uses: actions/checkout@v2 + - name: Run rustfmt check run: | rustup component add rustfmt cargo fmt --version From 6e6aff1438fc425cce96a5d97a75215da44af9ec Mon Sep 17 00:00:00 2001 From: Chris Simpkins Date: Fri, 15 May 2020 01:14:12 -0400 Subject: [PATCH 6/7] remove Travis configuration --- .travis.yml | 16 ---------------- 1 file changed, 16 deletions(-) delete mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index f313f08..0000000 --- a/.travis.yml +++ /dev/null @@ -1,16 +0,0 @@ -language: rust -rust: - - stable - - beta - - nightly - -script: - - | - if [[ $TRAVIS_RUST_VERSION == *stable* ]] - then - rustup component add rustfmt - cargo fmt --version - cargo fmt -- --check || (echo "Please reformat your code with 'cargo fmt' (version $(cargo fmt --version))"; false) - fi - - cargo build --verbose --all - - cargo test --verbose --all From 0760a3577bdb98507f323917e987361c2929324a Mon Sep 17 00:00:00 2001 From: Chris Simpkins Date: Fri, 15 May 2020 01:26:06 -0400 Subject: [PATCH 7/7] remove caching from Win workflow --- .github/workflows/windowsci.yml | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/.github/workflows/windowsci.yml b/.github/workflows/windowsci.yml index 1af790c..99f1490 100644 --- a/.github/workflows/windowsci.yml +++ b/.github/workflows/windowsci.yml @@ -7,22 +7,6 @@ jobs: name: Windows CI runs-on: windows-latest steps: - - name: Cache cargo registry - uses: actions/cache@v1 - with: - path: ~/.cargo/registry - key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }} - - name: Cache cargo index - uses: actions/cache@v1 - with: - path: ~/.cargo/git - key: ${{ runner.os }}-cargo-index-${{ hashFiles('**/Cargo.lock') }} - - name: Cache cargo build - uses: actions/cache@v1 - with: - path: target - key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('**/Cargo.lock') }} - - uses: actions/checkout@v2 - name: Install latest stable toolchain uses: actions-rs/toolchain@v1