Skip to content

Commit

Permalink
automation: build-release.yaml: install ninja-build on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
cgay committed Feb 11, 2024
1 parent 6e308d8 commit ad86a0d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ jobs:

- name: Install Dependencies
run: |
if [ "$RUNNER_OS" == "Linux" ]; then
sudo apt-get install ninja-build
fi
if [ "$RUNNER_OS" == "macOS" ]; then
brew install autoconf automake ninja
fi
Expand Down
7 changes: 4 additions & 3 deletions build/fdmake.pl
Original file line number Diff line number Diff line change
Expand Up @@ -263,9 +263,10 @@ sub build_library {
if ($failed) {
print "\n";
if(defined $build_logs && !$debugger) {
print STDERR
"fdmake: compile failed ($?), see ",
File::Spec->catfile($build_logs, "compile-$library.txt"), "\n";
my $log = File::Spec->catfile($build_logs, "compile-$library.txt");
my $cmd = "/bin/cat $log";
system($cmd) or die "Couldn't execute $command";
print STDERR "fdmake: compile failed ($?), see ", $log, "\n";
}
else {
print STDERR "fdmake: compile failed\n";
Expand Down

0 comments on commit ad86a0d

Please sign in to comment.