From 0fcf7a3f374cf9268c571fdd9ee3a777880d2ed5 Mon Sep 17 00:00:00 2001 From: Matt Haggard Date: Thu, 13 Oct 2022 14:59:08 -0400 Subject: [PATCH 1/4] Add macOS to CI --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1133657a..8cc3fb0a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -5,7 +5,7 @@ jobs: strategy: fail-fast: false matrix: - os: [ubuntu-latest, windows-latest] + os: [ubuntu-latest, windows-latest, macos-latest] nim-version: ['1.4.x', 'stable'] runs-on: ${{ matrix.os }} From 264b101ffa2e6fd87cf19af83db9199a08a7f931 Mon Sep 17 00:00:00 2001 From: Matt Haggard Date: Thu, 13 Oct 2022 15:37:47 -0400 Subject: [PATCH 2/4] Adjust macOS tests --- .github/workflows/build.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8cc3fb0a..1a07a78d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -19,3 +19,7 @@ jobs: - run: nimble test --gc:arc -d:release -d:pixieNoSimd -y - run: nimble test --gc:orc -d:release -y - run: nim cpp --gc:orc -d:release -r tests/all.nim + if: runner.os != 'macOS' + - run: nim cpp --gc:orc -d:release -d:pixieNoSimd -d:zippyNoSimd -r tests/all.nim + if: runner.os == 'macOS' + \ No newline at end of file From bc5f07b4998dc9fd9ecf358ac0b5c0f1336d92f6 Mon Sep 17 00:00:00 2001 From: Matt Haggard Date: Thu, 13 Oct 2022 16:43:38 -0400 Subject: [PATCH 3/4] Overcome GittHub macOS rate limits --- .github/workflows/build.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1a07a78d..1af1b5b6 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -2,19 +2,21 @@ name: Github Actions on: [push, pull_request] jobs: build: + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} strategy: fail-fast: false matrix: os: [ubuntu-latest, windows-latest, macos-latest] - nim-version: ['1.4.x', 'stable'] + nim-version: ['1.4', 'stable'] runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v2 - - uses: jiro4989/setup-nim-action@v1 + - uses: iffy/install-nim@v4 with: - nim-version: ${{ matrix.nim-version }} + version: ${{ matrix.nim-version }} - run: nimble test --gc:arc -d:release -y - run: nimble test --gc:arc -d:release -d:pixieNoSimd -y - run: nimble test --gc:orc -d:release -y From 5dc98a8c6e703b721c2bdddb12e038c77290857a Mon Sep 17 00:00:00 2001 From: Matt Haggard Date: Mon, 17 Oct 2022 09:52:48 -0400 Subject: [PATCH 4/4] Use nim binaries instead of compiling --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1af1b5b6..5a92f185 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -8,7 +8,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest, windows-latest, macos-latest] - nim-version: ['1.4', 'stable'] + nim-version: ['binary:1.4', 'binary:stable'] runs-on: ${{ matrix.os }}