NTFS streams solution for NOB_EXPERIMENTAL_DELETE_OLD on Windows #336
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: no-build build | |
on: [push, pull_request] | |
jobs: | |
macos: | |
runs-on: macos-latest | |
steps: | |
- name: Clone GIT repo | |
uses: actions/checkout@v4 | |
- name: Run tests | |
run: | | |
clang -o nob nob.c | |
./nob | |
- name: Build how_to-s | |
run: | | |
cd how_to/ | |
clang -o nob nob.c | |
./nob | |
ubuntu: | |
strategy: | |
matrix: | |
cc: [gcc, clang] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Clone GIT repo | |
uses: actions/checkout@v4 | |
- name: Build tests | |
run: | | |
${{ matrix.cc }} -o nob nob.c | |
./nob | |
- name: Build how_to-s | |
run: | | |
cd how_to/ | |
${{ matrix.cc }} -o nob nob.c | |
./nob | |
windows: | |
runs-on: windows-latest | |
steps: | |
- name: Clone GIT repo | |
uses: actions/checkout@v4 | |
- name: Build tests | |
shell: cmd | |
# cl.exe isn't available as-is in Github images because they don't want | |
# to, so we need to pull env vars ourselves. Refs: | |
# https://github.com/actions/runner-images/issues/6205#issuecomment-1241573412 | |
# https://learn.microsoft.com/en-us/cpp/build/building-on-the-command-line?view=msvc-170#create-your-own-command-prompt-shortcut | |
run: | | |
call "C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\VC\\Auxiliary\\Build\\vcvars64.bat" | |
cl.exe /Fe:nob nob.c | |
nob.exe | |
- name: Build how_to-s | |
shell: cmd | |
run: | | |
call "C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\VC\\Auxiliary\\Build\\vcvars64.bat" | |
cd how_to/ | |
cl.exe /Fe:nob nob.c | |
nob.exe |