Skip to content

Commit

Permalink
Merge pull request flux-framework#6499 from garlick/macos_builder
Browse files Browse the repository at this point in the history
ci: add macos builder
  • Loading branch information
mergify[bot] authored Dec 10, 2024
2 parents 3cae472 + 21c8e19 commit 0af65c5
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 2 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,22 @@ jobs:
cd flux-pam &&
src/test/docker/docker-run-checks.sh -j 4 -i el8
build-macos:
needs: [python-lint]
name: macos build only
runs-on: macos-14
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
- name: Install dependencies
run: scripts/install-deps-macos.sh
- name: autogen, configure
run: scripts/configure-macos.sh
- name: make, including test programs
run: make check -j4 TESTS=

generate-matrix:
# https://stackoverflow.com/questions/59977364
name: Generate build matrix
Expand Down
2 changes: 2 additions & 0 deletions src/common/libsdexec/test/start.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
#include "src/common/libutil/jpath.h"
#include "start.h"

extern char **environ;

void test_inval (void)
{
char *av[] = { "/bin/ls", NULL };
Expand Down
4 changes: 2 additions & 2 deletions src/modules/job-manager/test/kill.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ int main (int argc, char **argv)
"kill_check_signal signum=SIGKILL works");
ok (kill_check_signal (-1) < 0,
"kill_check_signal signum=-1 fails");
ok (kill_check_signal (SIGRTMAX + 1) < 0,
"kill_check_signal signum=SIGRTMAX+1 fails");
ok (kill_check_signal (NSIG) < 0,
"kill_check_signal signum=NSIG fails");

done_testing ();

Expand Down
4 changes: 4 additions & 0 deletions src/modules/kvs/test/cache.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
#include <stdbool.h>
#include <jansson.h>

#ifndef EBADE
#define EBADE EINVAL
#endif

#include "src/common/libkvs/treeobj.h"
#include "src/common/libutil/tstat.h"
#include "src/common/libtap/tap.h"
Expand Down

0 comments on commit 0af65c5

Please sign in to comment.