Skip to content

[CI] Mac OS build#1052

Merged
Frenzie merged 2 commits into
koreader:masterfrom
Frenzie:gh-actions-macos
Feb 21, 2020
Merged

[CI] Mac OS build#1052
Frenzie merged 2 commits into
koreader:masterfrom
Frenzie:gh-actions-macos

Conversation

@Frenzie

@Frenzie Frenzie commented Feb 21, 2020

Copy link
Copy Markdown
Member

GitHub Actions provides readily available Mac OS (and Windows) builds, so we should prevent the habitual Mac OS breakage from here on out.

Differences from README:

  • ccache for obvious reasons (faster builds)
  • md5sha1sum caused some conflict with coreutils

Hopefully @NiLuJe will be able to help resolve the gettext/glib issue because I have no idea what's going on there.

GH Actions docs: https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions


This change is Reviewable

GitHub Actions provides readily available Mac OS (and Windows) builds, so we should prevent the habitual Mac OS breakage from here on out.

Differences from README:
* ccache for obvious reasons (faster builds)
* md5sha1sum caused some conflict with coreutils
@NiLuJe

NiLuJe commented Feb 21, 2020

Copy link
Copy Markdown
Member

What glib/gettext issue? ^^

@Frenzie

Frenzie commented Feb 21, 2020

Copy link
Copy Markdown
Member Author

glib apparently can't find the gettext that was just built right prior to it:

configure: error: 
*** You must have either have gettext support in your C library, or use the
*** GNU gettext library. (http://www.gnu.org/software/gettext/gettext.html)

make[3]: *** [glib-prefix/src/glib-stamp/glib-configure] Error 1
make[2]: *** [CMakeFiles/glib.dir/all] Error 2
make[1]: *** [all] Error 2
make: *** [/Users/runner/runners/2.165.2/work/koreader-base/koreader-base/thirdparty/glib/build/x86_64-apple-darwin19.3.0/glib-prefix/src/glib-build/lib/libglib-2.0.dylib] Error 2

@Frenzie

Frenzie commented Feb 21, 2020

Copy link
Copy Markdown
Member Author

@NiLuJe

NiLuJe commented Feb 21, 2020

Copy link
Copy Markdown
Member

Would ideally need glib's configure config.log ;).

#1000 should take care of the actual build (i.e., we do rely on brew's gettext, not our own).

I don't remember ever having to modify my PATH, but it's been a while (but since I use ZSH, I certainly wouldn't have recommended updating Bash's profile ;p).

That said, that might be a hint: export PATH for real, don't rely on a profile that might not be used by the CI.

@Frenzie

Frenzie commented Feb 21, 2020

Copy link
Copy Markdown
Member Author

@NiLuJe

NiLuJe commented Feb 21, 2020

Copy link
Copy Markdown
Member

It's entirely possible that I do actually have /usr/local/* in front of my own PATH in my macOS ZSH setup, though, let me check ;).

@NiLuJe

NiLuJe commented Feb 21, 2020

Copy link
Copy Markdown
Member

Yep ^^.

┌─(niluje@Felicity:s002)────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────(~/Dev/koreader)─┐
└─(3.51:50%:20:20:%)── echo $PATH                                                                                                                                            ──(Fri, Feb 21)─┘
/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin

@NiLuJe

NiLuJe commented Feb 21, 2020

Copy link
Copy Markdown
Member

Which makes sense ;).

@Frenzie

Frenzie commented Feb 21, 2020

Copy link
Copy Markdown
Member Author

@NiLuJe Alright, that was the ticket!

@Frenzie Frenzie merged commit 18bfcdf into koreader:master Feb 21, 2020
@Frenzie Frenzie deleted the gh-actions-macos branch February 21, 2020 20:00
NiLuJe added a commit to NiLuJe/koreader that referenced this pull request Feb 21, 2020
Frenzie pushed a commit to koreader/koreader that referenced this pull request Feb 22, 2020
* Update macOS PATH shenanigans.

c.f., koreader/koreader-base#1052

* Prefer coreutils, it now ships everything we need.

(Or it always did? I apparently don't actually have coreutils
installed on my end).

* Also recommend putting Homebrew first in PATH

Mainly because it turns out that's how I tested this the last time ;).
Also, it  just makes sense, and might be part of Homebrew's
recommendations anyway.
Frenzie added a commit to Frenzie/koreader-base that referenced this pull request Mar 2, 2020
That way it should show. See <koreader#1052>.
@Frenzie Frenzie mentioned this pull request Mar 2, 2020
Frenzie added a commit that referenced this pull request Mar 2, 2020
That way it should show. See <#1052>.
mwoz123 pushed a commit to mwoz123/koreader that referenced this pull request Mar 29, 2020
* Update macOS PATH shenanigans.

c.f., koreader/koreader-base#1052

* Prefer coreutils, it now ships everything we need.

(Or it always did? I apparently don't actually have coreutils
installed on my end).

* Also recommend putting Homebrew first in PATH

Mainly because it turns out that's how I tested this the last time ;).
Also, it  just makes sense, and might be part of Homebrew's
recommendations anyway.
0xstillb pushed a commit to 0xstillb/koreader-thai that referenced this pull request May 9, 2026
* Update macOS PATH shenanigans.

c.f., koreader/koreader-base#1052

* Prefer coreutils, it now ships everything we need.

(Or it always did? I apparently don't actually have coreutils
installed on my end).

* Also recommend putting Homebrew first in PATH

Mainly because it turns out that's how I tested this the last time ;).
Also, it  just makes sense, and might be part of Homebrew's
recommendations anyway.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants