File tree Expand file tree Collapse file tree 2 files changed +18
-1
lines changed Expand file tree Collapse file tree 2 files changed +18
-1
lines changed Original file line number Diff line number Diff line change 44
44
uses : gerlero/brew-install@v1
45
45
with :
46
46
packages : octave
47
+
48
+ - name : Install Gnu grep
49
+ id : install-octave
50
+ uses : gerlero/brew-install@v1
51
+ with :
52
+ packages : grep
47
53
48
54
- name : Check Out the Repo
49
55
uses : actions/checkout@v4
55
61
56
62
- name : Test oct-hdf5
57
63
run : make check
64
+
65
+ - name : Archive test results
66
+ uses : actions/upload-artifact@v4
67
+ with :
68
+ name : code-coverage-report
69
+ path : test/fntests.log
Original file line number Diff line number Diff line change @@ -9,7 +9,12 @@ SOURCES := $(wildcard *.cc)
9
9
OBJS := $(patsubst % .cc,% .oct,$(SOURCES ) )
10
10
SOURCES_UTIL := $(wildcard * .cc)
11
11
OBJS_UTIL := $(patsubst % .cc,% .o,$(SOURCES_UTIL ) )
12
- PKG_ADD := $(shell grep -Pho '(?<=// PKG_ADD: ) .*' $(SOURCES ) )
12
+ ifeq ($(UNAME ) ,Darwin)
13
+ GREP = ggrep
14
+ else
15
+ GREP = grep
16
+ endif
17
+ PKG_ADD := $(shell $(GREP ) -Pho '(?<=// PKG_ADD: ) .*' $(SOURCES ) )
13
18
14
19
# # Test Octave version
15
20
OCT_MAJ_VER := $(shell ${OCTAVE} -f --silent --eval "printf ('% s', strsplit (version, \".\") {1})")
You can’t perform that action at this time.
0 commit comments