Skip to content

Commit

Permalink
windows / osx in ci
Browse files Browse the repository at this point in the history
  • Loading branch information
arnetheduck committed Dec 11, 2023
1 parent 965d036 commit ba22770
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,27 +12,29 @@ jobs:
matrix:
target:
- os: linux
cpu: amd64
TEST_LANG: c
triple: x86_64-linux-musl
name: linux_x64
- os: windows
triple: x86_64-w64-mingw32
name: windows_x64
include:
- target:
os: linux
builder: ubuntu-20.04
shell: bash
defaults:
run:
shell: ${{ matrix.shell }}
shell: bash

name: '${{ matrix.target.os }}-${{ matrix.target.cpu }}-${{ matrix.target.TEST_LANG }}'
name: '${{ matrix.name }}'
runs-on: ${{ matrix.builder }}
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Fetch nimble
run: |
wget https://github.com/nim-lang/nimble/releases/download/latest/nimble-linux_x64.tar.gz
tar xvf nimble-linux_x64.tar.gz
wget https://github.com/nim-lang/nimble/releases/download/latest/nimble-${{matrix.target.name}}.tar.gz
tar xvf nimble-${{matrix.target.name}}.tar.gz
echo "$PWD" >> $GITHUB_PATH
- name: Build nph
Expand Down
5 changes: 5 additions & 0 deletions src/phmsgs.nim
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,11 @@ when defined(nimpretty) or defined(nph):
proc fileSection*(conf: ConfigRef; fid: FileIndex; a, b: int): string =
substr(conf.m.fileInfos[fid.int].fullContent, a, b)

when not FileSystemCaseSensitive:
proc toLowerAscii(a: var string) {.inline.} =
for c in mitems(a):
if isUpperAscii(c): c = char(uint8(c) xor 0b0010_0000'u8)

proc canonicalCase(path: var string) {.inline.} =
## the idea is to only use this for checking whether a path is already in
## the table but otherwise keep the original case
Expand Down

0 comments on commit ba22770

Please sign in to comment.