Skip to content

Commit f45f4c9

Browse files
authored
Merge pull request #197 from tsoding/next-release
Release v3.0.0
2 parents 91d0a4a + 8759883 commit f45f4c9

File tree

24 files changed

+112
-80
lines changed

24 files changed

+112
-80
lines changed

.github/workflows/nob.yaml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,35 +3,39 @@ on: [push, pull_request]
33

44
jobs:
55
macos:
6+
strategy:
7+
matrix:
8+
lang: [c, c++]
69
runs-on: macos-latest
710
steps:
811
- name: Clone GIT repo
912
uses: actions/checkout@v4
1013
- name: Run tests
1114
run: |
12-
clang -o nob nob.c
15+
clang -x ${{ matrix.lang }} -o nob nob.c
1316
./nob
1417
- name: Build how_to-s
1518
run: |
1619
cd how_to/
17-
clang -o nob nob.c
20+
clang -x ${{ matrix.lang }} -o nob nob.c
1821
./nob
1922
ubuntu:
2023
strategy:
2124
matrix:
2225
cc: [gcc, clang]
26+
lang: [c, c++]
2327
runs-on: ubuntu-latest
2428
steps:
2529
- name: Clone GIT repo
2630
uses: actions/checkout@v4
2731
- name: Build tests
2832
run: |
29-
${{ matrix.cc }} -o nob nob.c
33+
${{ matrix.cc }} -x ${{ matrix.lang }} -o nob nob.c
3034
./nob
3135
- name: Build how_to-s
3236
run: |
3337
cd how_to/
34-
${{ matrix.cc }} -o nob nob.c
38+
${{ matrix.cc }} -x ${{ matrix.lang }} -o nob nob.c
3539
./nob
3640
windows:
3741
runs-on: windows-latest

how_to/005_parallel_build/nob.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#define NOB_IMPLEMENTATION
2-
#define NOB_STRIP_PREFIX
32
#define NOB_WARN_DEPRECATED
43
#include "nob.h"
54

how_to/010_nob_two_stage/nob.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#define NOB_IMPLEMENTATION
2-
#define NOB_STRIP_PREFIX
32
#define NOB_WARN_DEPRECATED
43
#include "nob.h"
54
#include "src_build/folders.h"
@@ -34,7 +33,7 @@ int main(int argc, char **argv)
3433
const char *input_path = SRC_BUILD_FOLDER"nob_configed.c";
3534
nob_cc(&cmd);
3635
nob_cc_flags(&cmd);
37-
nob_cmd_append(&cmd, "-I.", "-I"BUILD_FOLDER, "-I"SRC_BUILD_FOLDER); // -I is usually the same across all compilers
36+
nob_cmd_append(&cmd, "-I.", "-I" BUILD_FOLDER, "-I" SRC_BUILD_FOLDER); // -I is usually the same across all compilers
3837
nob_cc_output(&cmd, output_path);
3938
nob_cc_inputs(&cmd, input_path);
4039
if (!cmd_run(&cmd)) return 1;

how_to/010_nob_two_stage/src_build/nob_configed.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#define NOB_IMPLEMENTATION
2-
#define NOB_STRIP_PREFIX
32
#define NOB_WARN_DEPRECATED
43
#include "nob.h"
54
#include "config.h"

how_to/nob.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Makes sure the examples are buildable. Used usually on CI.
22
#include "../shared.h"
33
#define NOB_IMPLEMENTATION
4-
#define NOB_STRIP_PREFIX
54
#define NOB_EXPERIMENTAL_DELETE_OLD
65
#define NOB_WARN_DEPRECATED
76
#include "../nob.h"
@@ -24,6 +23,7 @@ int main(int argc, char **argv)
2423
size_t mark = temp_save();
2524
if (!set_current_dir(temp_sprintf("./%s", example))) return 1;
2625
nob_cc(&cmd);
26+
nob_cc_flags(&cmd);
2727
nob_cc_output(&cmd, "./nob");
2828
nob_cc_inputs(&cmd, "nob.c");
2929
if (!cmd_run(&cmd)) return 1;

nob.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#include "shared.h"
22
#define NOBDEF static inline
33
#define NOB_IMPLEMENTATION
4-
#define NOB_STRIP_PREFIX
54
#define NOB_EXPERIMENTAL_DELETE_OLD
65
#define NOB_WARN_DEPRECATED
76
#include "nob.h"

0 commit comments

Comments
 (0)