From d333d20ffb54a061451663c3c08e1e19124d2167 Mon Sep 17 00:00:00 2001 From: flywind Date: Tue, 20 Jul 2021 23:06:28 +0800 Subject: [PATCH] add ci --- .github/workflows/action.yml | 49 ++++++++++++++++++++++++++++++++++++ CHANGELOG.md | 2 +- 2 files changed, 50 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/action.yml diff --git a/.github/workflows/action.yml b/.github/workflows/action.yml new file mode 100644 index 0000000..2fca566 --- /dev/null +++ b/.github/workflows/action.yml @@ -0,0 +1,49 @@ +name: Test nimYAML + +on: [push, pull_request] + +jobs: + test: + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: + - ubuntu-latest + - windows-latest + - macOS-latest + nim-version: + - stable + - devel + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Cache choosenim + id: cache-choosenim + uses: actions/cache@v2 + with: + path: ~/.choosenim + key: ${{ runner.os }}-choosenim-${{ matrix.nim-version}} + + - name: Cache nimble + id: cache-nimble + uses: actions/cache@v2 + with: + path: ~/.nimble + key: ${{ runner.os }}-nimble-${{ matrix.nim-version}}-${{ hashFiles('prologue.nimble') }} + restore-keys: | + ${{ runner.os }}-nimble-${{ matrix.nim-version}}- + - name: Setup nim + uses: jiro4989/setup-nim-action@v1 + with: + nim-version: ${{ matrix.nim-version }} + + - name: Install Packages + run: nimble install -y + + - name: Test + run: | + nim lexerTests + nim parserTests + nim jsonTests + nim domTests diff --git a/CHANGELOG.md b/CHANGELOG.md index 672c6cf..5aa6a51 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,7 @@ Features: - * Compiles with --gc:arm and --gc:orm + * Compiles with --gc:arc and --gc:orc Bugfixes: