diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9427716..1052ef0 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,26 +1,16 @@ -name: Run tests +name: Github Actions on: [push, pull_request] jobs: build: - runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + os: [ubuntu-latest, windows-latest] - steps: - - uses: actions/checkout@v1 - - - name: Cache choosenim - id: cache-choosenim - uses: actions/cache@v1 - with: - path: ~/.choosenim - key: ${{ runner.os }}-choosenim-stable - - - name: Cache nimble - id: cache-nimble - uses: actions/cache@v1 - with: - path: ~/.nimble - key: ${{ runner.os }}-nimble-stable + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v2 - uses: jiro4989/setup-nim-action@v1 - - run: nimble test -y + - run: nimble test --gc:orc -y diff --git a/tests/test_hexprint.nim b/tests/test_hexprint.nim index 720fc82..db3d1a8 100644 --- a/tests/test_hexprint.nim +++ b/tests/test_hexprint.nim @@ -1,4 +1,4 @@ -import flatty/binny, flatty/hexprint, osproc, streams +import flatty/binny, flatty/hexprint, streams var s = newFileStream("tests/test_hexprint-output.txt", fmWrite) @@ -28,8 +28,3 @@ block: s.writeLine hexPrint(bin) s.close() - -let (outp, _) = execCmdEx("git diff tests/test_hexprint-output.txt") -if len(outp) != 0: - echo outp - quit("Output does not match")