From d36b181044b900a1926c1401d6ac80f9a5fb5c47 Mon Sep 17 00:00:00 2001 From: Ebrahim Byagowi Date: Fri, 7 Jan 2022 12:17:44 +0330 Subject: [PATCH 1/2] Mention macOS buildability in generate/README.md --- generate/README.md | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/generate/README.md b/generate/README.md index f72e71f1..1078a1af 100644 --- a/generate/README.md +++ b/generate/README.md @@ -10,7 +10,7 @@ and use the [source code that has already been generated for that language](../s --- -# Linux +# Linux and macOS ## Tool setup @@ -24,6 +24,7 @@ The following tools are required for developers: - doxygen - xsltproc - graphviz +- coreutils Change into the directory `hydrogen` and execute: `npm init`. @@ -59,13 +60,3 @@ Once you have all the tools installed and configured, you are ready to proceed. Change into the `generate` directory (this directory) and run the batch file `run.bat` to rebuild all code, generate all documentation, and run all the unit tests. - ---- - -# Mac - -I could use some help getting this to work on the Mac. If you are looking -for an open source project to help with, and you have a Mac, here is your chance! -This should be similar to the Linux steps, but may require some tweaks. -See issue #142 for more information. - From 4a0902fa10be24523b5ef94817d60a1cb4278987 Mon Sep 17 00:00:00 2001 From: Ebrahim Byagowi Date: Fri, 7 Jan 2022 03:37:02 +0330 Subject: [PATCH 2/2] CI: Add a macos bot --- .github/workflows/astronomy-engine-tests.yml | 23 ++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/.github/workflows/astronomy-engine-tests.yml b/.github/workflows/astronomy-engine-tests.yml index af08f72b..34064422 100644 --- a/.github/workflows/astronomy-engine-tests.yml +++ b/.github/workflows/astronomy-engine-tests.yml @@ -23,3 +23,26 @@ jobs: node-version: 14.x - name: Test Astronomy Engine run: cd generate && rm -f output/vsop*.txt output/*.eph output/jupiter_moons.txt && ./run && ./verify_clean + + Astronomy-Engine-Macos: + runs-on: macos-11 + steps: + - uses: actions/checkout@v2 + - name: Init dotnet core + uses: actions/setup-dotnet@v1 + with: + dotnet-version: 6.0.x + - name: Init Python 3.7 + uses: actions/setup-python@v2 + with: + python-version: 3.7 + - name: Install Python linter + run: python -m pip install --upgrade pip && pip install pylint + - name: Install documentation tools + run: HOMEBREW_NO_AUTO_UPDATE=1 brew install doxygen + - name: Init Node.js 14.x + uses: actions/setup-node@v2 + with: + node-version: 14.x + - name: Test Astronomy Engine + run: cd generate && rm -f output/vsop*.txt output/*.eph output/jupiter_moons.txt && ./run && ./verify_clean