Skip to content

Fixes an issue where --requires didnt work for adding nim constraints (include Nim in SAT resolution) #2270

Fixes an issue where --requires didnt work for adding nim constraints (include Nim in SAT resolution)

Fixes an issue where --requires didnt work for adding nim constraints (include Nim in SAT resolution) #2270

Workflow file for this run

on:
push:
paths-ignore: ['nimble-guide/**', '**/*.md']
pull_request:
paths-ignore: ['nimble-guide/**', '**/*.md']
schedule:
- cron: "0 19 * * *"
jobs:
test:
strategy:
matrix:
os:
- windows-latest
- macos-latest
- ubuntu-latest
nimversion:
# - devel
- stable
name: ${{ matrix.os }} - ${{ matrix.nimversion }}
runs-on: ${{ matrix.os }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v4
- uses: jiro4989/setup-nim-action@v2
with:
nim-version: ${{ matrix.nimversion }}
- run: nim --version
- name: Install Mercurial on macOS
if: matrix.os == 'macos-latest'
run: brew install mercurial
- name: Install dependencies
run: nimble install -y
- name: Run nim c -r tester
run: |
cd tests
nim c -r tester
# there's no need to add nimblepkg unit tests --
# they are run by tmoduletests.nim
- run: ./src/nimble install -y
- name: Build nimble with `-d:nimNimbleBootstrap`
run: |
nim c -d:release -r tests/private/clone.nim
nim c -d:nimNimbleBootstrap -d:release src/nimble.nim