From ea9de4c330c1dcafa748074e0b85930caa04d04b Mon Sep 17 00:00:00 2001 From: Casper Date: Tue, 9 Feb 2021 00:30:13 +0100 Subject: [PATCH] Migrate to github Actions (#33) --- .github/workflows/ci.yml | 48 ++++++++++++++++++++++++++++++++++++++++ .travis.yml | 9 -------- readme.md | 2 +- 3 files changed, 49 insertions(+), 10 deletions(-) create mode 100644 .github/workflows/ci.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..5da3d3b --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,48 @@ +name: CI + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +jobs: + ci: + runs-on: ubuntu-latest + strategy: + matrix: + rust: + - stable + - beta + - nightly + + steps: + - name: Checkout sources + uses: actions/checkout@v2 + + - name: Install toolchain + uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: ${{ matrix.rust }} + default: true + + - name: Quick check + uses: actions-rs/cargo@v1 + with: + command: check + + - name: Run tests + uses: actions-rs/cargo@v1 + with: + command: test + + # Run tests again in Release mode to attempt to catch UB + - name: Run tests (Release) + uses: actions-rs/cargo@v1 + with: + command: test + args: --release diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index a9869e6..0000000 --- a/.travis.yml +++ /dev/null @@ -1,9 +0,0 @@ -language: rust -rust: - - stable - - beta - - nightly -matrix: - allow_failures: - - rust: nightly - fast_finish: true diff --git a/readme.md b/readme.md index 1d31d67..86e82f4 100644 --- a/readme.md +++ b/readme.md @@ -4,7 +4,7 @@ String Obfuscation [![MIT License](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![crates.io](https://img.shields.io/crates/v/obfstr.svg)](https://crates.io/crates/obfstr) [![docs.rs](https://docs.rs/obfstr/badge.svg)](https://docs.rs/obfstr) -[![Build Status](https://travis-ci.org/CasualX/obfstr.svg?branch=master)](https://travis-ci.org/CasualX/obfstr) +[![Build status](https://github.com/CasualX/obfstr/workflows/CI/badge.svg)](https://github.com/CasualX/obfstr/actions) Compiletime string constant obfuscation for Rust.