From c9674d7a75ada7967bb37376134f31d999f561a9 Mon Sep 17 00:00:00 2001 From: Yota Toyama Date: Sat, 28 Nov 2020 04:38:54 +0000 Subject: [PATCH 01/10] Add test workflow --- .github/workflows/test.yaml | 84 +++++++++++++++++++++++++++++++++++++ 1 file changed, 84 insertions(+) create mode 100644 .github/workflows/test.yaml diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml new file mode 100644 index 0000000..f0f8637 --- /dev/null +++ b/.github/workflows/test.yaml @@ -0,0 +1,84 @@ +name: test +on: + - push +jobs: + unit-test: + runs-on: ubuntu-latest + container: + image: einlang/ci + steps: + - uses: actions/checkout@v2 + - uses: actions-rs/toolchain@v1 + - uses: actions-rs/cargo@v1 + with: + command: test + env: + RUST_MIN_STACK: 8388608 + integration-test: + runs-on: ubuntu-latest + container: + image: einlang/ci + steps: + - uses: actions/checkout@v2 + - uses: actions-rs/toolchain@v1 + - uses: actions-rs/cargo@v1 + with: + command: build + args: --release + - run: EIN_ROOT=$PWD PATH=$PWD/target/release:$PATH cucumber + format: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions-rs/toolchain@v1 + - uses: actions-rs/cargo@v1 + with: + command: fmt + args: -- --check + lint: + runs-on: ubuntu-latest + container: + image: einlang/ci + steps: + - uses: actions/checkout@v2 + - uses: actions-rs/toolchain@v1 + - uses: actions-rs/cargo@v1 + with: + command: clippy + args: -- -D warnings + spell-check: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - run: npx cspell '**/*.{feature,md,rs}' + audit: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions-rs/audit-check@v1 + with: + token: ${{ secrets.GITHUB_TOKEN }} + code-coverage: + runs-on: ubuntu-latest + container: + image: einlang/ci + steps: + - uses: actions/checkout@v2 + - uses: actions-rs/toolchain@v1 + with: + toolchain: nightly + override: true + - uses: actions-rs/cargo@v1 + with: + command: test + args: --all-features --no-fail-fast + env: + RUST_MIN_STACK: 8388608 + CARGO_INCREMENTAL: "0" + RUSTFLAGS: "-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off" + - id: coverage + uses: actions-rs/grcov@v0.1 + - uses: codecov/codecov-action@v1 + with: + token: ${{ secrets.CODECOV_TOKEN }} + file: ${{ steps.coverage.outputs.report }} From fe8920f7d4ec7a4ec83639a4dd611aa295ef0ed1 Mon Sep 17 00:00:00 2001 From: Yota Toyama Date: Sat, 28 Nov 2020 04:40:53 +0000 Subject: [PATCH 02/10] Add badge --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index f3807e8..e387a0b 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # bdwgc-alloc -[![Circle CI](https://img.shields.io/circleci/project/github/raviqqe/bdwgc-alloc/master.svg?style=flat-square)](https://circleci.com/gh/raviqqe/bdwgc-alloc) +[![GitHub Action](https://img.shields.io/github/workflow/status/raviqqe/bdwgc-alloc/test?style=flat-square)](https://github.com/raviqqe/bdwgc-alloc/actions) [![Crate](https://img.shields.io/crates/v/bdwgc-alloc.svg?style=flat-square)](https://crates.io/crates/bdwgc-alloc) [![License](https://img.shields.io/github/license/raviqqe/bdwgc-alloc.svg?style=flat-square)](LICENSE) From 79ff5a26d9d5681d11a10045dea614927c945b39 Mon Sep 17 00:00:00 2001 From: Yota Toyama Date: Sat, 28 Nov 2020 04:41:52 +0000 Subject: [PATCH 03/10] Add rust-toolchain file --- rust-toolchain | 1 + 1 file changed, 1 insertion(+) create mode 100644 rust-toolchain diff --git a/rust-toolchain b/rust-toolchain new file mode 100644 index 0000000..2bf5ad0 --- /dev/null +++ b/rust-toolchain @@ -0,0 +1 @@ +stable From d49d90e5686194fc34916e72e811d45e1ea116c0 Mon Sep 17 00:00:00 2001 From: Yota Toyama Date: Sat, 28 Nov 2020 04:45:20 +0000 Subject: [PATCH 04/10] Modify workflow --- .github/workflows/test.yaml | 66 +++---------------------------------- 1 file changed, 4 insertions(+), 62 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index f0f8637..a93cfe1 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -2,83 +2,25 @@ name: test on: - push jobs: - unit-test: + test: runs-on: ubuntu-latest - container: - image: einlang/ci - steps: - - uses: actions/checkout@v2 - - uses: actions-rs/toolchain@v1 - - uses: actions-rs/cargo@v1 - with: - command: test - env: - RUST_MIN_STACK: 8388608 - integration-test: - runs-on: ubuntu-latest - container: - image: einlang/ci steps: - uses: actions/checkout@v2 - uses: actions-rs/toolchain@v1 - uses: actions-rs/cargo@v1 with: command: build - args: --release - - run: EIN_ROOT=$PWD PATH=$PWD/target/release:$PATH cucumber - format: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - uses: actions-rs/toolchain@v1 - uses: actions-rs/cargo@v1 with: command: fmt args: -- --check - lint: - runs-on: ubuntu-latest - container: - image: einlang/ci - steps: - - uses: actions/checkout@v2 - - uses: actions-rs/toolchain@v1 - uses: actions-rs/cargo@v1 with: command: clippy args: -- -D warnings - spell-check: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - run: npx cspell '**/*.{feature,md,rs}' - audit: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - uses: actions-rs/audit-check@v1 with: token: ${{ secrets.GITHUB_TOKEN }} - code-coverage: - runs-on: ubuntu-latest - container: - image: einlang/ci - steps: - - uses: actions/checkout@v2 - - uses: actions-rs/toolchain@v1 - with: - toolchain: nightly - override: true - - uses: actions-rs/cargo@v1 - with: - command: test - args: --all-features --no-fail-fast - env: - RUST_MIN_STACK: 8388608 - CARGO_INCREMENTAL: "0" - RUSTFLAGS: "-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off" - - id: coverage - uses: actions-rs/grcov@v0.1 - - uses: codecov/codecov-action@v1 - with: - token: ${{ secrets.CODECOV_TOKEN }} - file: ${{ steps.coverage.outputs.report }} + - runs: | + cd examples + ./test.sh From a12c85c440404c7ab22e871d10d3b5dea127ac02 Mon Sep 17 00:00:00 2001 From: Yota Toyama Date: Sat, 28 Nov 2020 04:45:46 +0000 Subject: [PATCH 05/10] Remove circleci workflow --- .circleci/config.yml | 15 --------------- 1 file changed, 15 deletions(-) delete mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index 6d9a366..0000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,15 +0,0 @@ -version: 2 -jobs: - build: - docker: - - image: rustlang/rust:nightly - steps: - - run: apt -y update --fix-missing - - run: apt -y install cmake - - checkout - - run: git submodule update --init --recursive - - run: cargo build - - run: cd examples && ./test.sh - - run: | - git clean -dfx - cargo build --no-default-features --features cmake From 01e5e15569573bb658c2df398cd33bfe99607678 Mon Sep 17 00:00:00 2001 From: Yota Toyama Date: Sat, 28 Nov 2020 04:47:30 +0000 Subject: [PATCH 06/10] Fix github workflow --- .github/workflows/test.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index a93cfe1..8563c4b 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -21,6 +21,9 @@ jobs: - uses: actions-rs/audit-check@v1 with: token: ${{ secrets.GITHUB_TOKEN }} - - runs: | + - run: | cd examples ./test.sh + - run: | + git clean -dfx + cargo build --no-default-features --features cmake From 5e4687a90d0e627ea6248a6f0579d2801568dfd1 Mon Sep 17 00:00:00 2001 From: Yota Toyama Date: Sat, 28 Nov 2020 04:49:14 +0000 Subject: [PATCH 07/10] Check out submodules --- .github/workflows/test.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 8563c4b..e4252f4 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -6,6 +6,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 + with: + submodules: true - uses: actions-rs/toolchain@v1 - uses: actions-rs/cargo@v1 with: From ba59f8100ab72bb485278c2131508eacb21d3f4a Mon Sep 17 00:00:00 2001 From: Yota Toyama Date: Sat, 28 Nov 2020 04:51:35 +0000 Subject: [PATCH 08/10] Remove token --- .github/workflows/test.yaml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index e4252f4..ca43d4f 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -21,8 +21,6 @@ jobs: command: clippy args: -- -D warnings - uses: actions-rs/audit-check@v1 - with: - token: ${{ secrets.GITHUB_TOKEN }} - run: | cd examples ./test.sh From c0a8821f5aab040f1ecfc8bca2f136ac2ad6643d Mon Sep 17 00:00:00 2001 From: Yota Toyama Date: Sat, 28 Nov 2020 04:53:32 +0000 Subject: [PATCH 09/10] Disable warnings --- .github/workflows/test.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index ca43d4f..e29bdf9 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -19,7 +19,6 @@ jobs: - uses: actions-rs/cargo@v1 with: command: clippy - args: -- -D warnings - uses: actions-rs/audit-check@v1 - run: | cd examples From 181d4380b0f5ba7445b8b9313e9e39eab73d83d8 Mon Sep 17 00:00:00 2001 From: Yota Toyama Date: Sat, 28 Nov 2020 04:56:09 +0000 Subject: [PATCH 10/10] Revert "Remove token" This reverts commit ba59f8100ab72bb485278c2131508eacb21d3f4a. --- .github/workflows/test.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index e29bdf9..8719bdf 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -20,6 +20,8 @@ jobs: with: command: clippy - uses: actions-rs/audit-check@v1 + with: + token: ${{ secrets.GITHUB_TOKEN }} - run: | cd examples ./test.sh