-
Notifications
You must be signed in to change notification settings - Fork 234
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add CI for MacOS #427
Add CI for MacOS #427
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,20 +17,30 @@ jobs: | |
fail-fast: false | ||
matrix: | ||
otp_vsn: [23, 24, 25, master, latest] | ||
os: [ubuntu-18.04, ubuntu-20.04] | ||
os: [ubuntu-18.04, ubuntu-20.04, macos-11, macos-12] | ||
steps: | ||
- name: Update env. | ||
run: | | ||
sudo sed -i 's/azure\.//' /etc/apt/sources.list # Reduces chance of time-outs | ||
sudo apt-get update -y | ||
sudo apt-get upgrade -y | ||
sudo apt-get install -y --no-install-recommends \ | ||
curl ca-certificates git autoconf dpkg-dev \ | ||
zlib1g-dev libncurses5-dev libssl-dev unixodbc-dev libgmp3-dev \ | ||
libwxgtk3.0-gtk3-dev libwxgtk-webview3.0-gtk3-dev libsctp-dev \ | ||
lksctp-tools build-essential gcc-9 m4 fop xsltproc \ | ||
default-jdk libxml2-utils procps valgrind binutils | ||
echo 'KERL_RELEASE_TARGET=debug opt gcov gprof valgrind lcnt' >> $GITHUB_ENV | ||
if [[ ${{matrix.os}} == macos* ]]; then | ||
/bin/bash -c "$(curl -fsSL \ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The only differences, from Ubuntu, are this section and the one below ( |
||
https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | ||
brew install automake fop wxwidgets | ||
else | ||
sudo sed -i 's/azure\.//' /etc/apt/sources.list # Reduces chance of time-outs | ||
sudo apt-get update -y | ||
sudo apt-get upgrade -y | ||
sudo apt-get install -y --no-install-recommends \ | ||
curl ca-certificates git autoconf dpkg-dev \ | ||
zlib1g-dev libncurses5-dev libssl-dev unixodbc-dev libgmp3-dev \ | ||
libwxgtk3.0-gtk3-dev libwxgtk-webview3.0-gtk3-dev libsctp-dev \ | ||
lksctp-tools build-essential gcc-9 m4 fop xsltproc \ | ||
default-jdk libxml2-utils procps valgrind binutils | ||
fi | ||
if [[ ${{matrix.os}} == macos* ]]; then | ||
echo 'KERL_RELEASE_TARGET=debug opt' >> $GITHUB_ENV | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I single this The targets were not testing aren't straightforward to achieve, at least with Homebrew. e.g. If all goes well this can still be an acceptable first base for building upon. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hey, @garazdawi. I tried it with |
||
else | ||
echo 'KERL_RELEASE_TARGET=debug opt gcov gprof valgrind lcnt' >> $GITHUB_ENV | ||
fi | ||
- name: Git checkout | ||
uses: actions/checkout@v3 | ||
- name: Update OTP releases | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes are probable best viewed with "Hide whitespace", since this introduces an
if
which changes existing script indentation.