From 5abda9df5d29999bedc90d160fbcd65f52df4a46 Mon Sep 17 00:00:00 2001 From: Brandon Rhodes Date: Sun, 16 Oct 2022 22:09:05 -0400 Subject: [PATCH] Add basic GitHub Actions for Linux and Mac --- .github/workflows/ci.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100755 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100755 index 0000000..a67e5a5 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,35 @@ +name: ci + +on: + push: + branches: + - master + + pull_request: + branches: + - master + +jobs: + compile-linux-and-test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Install Ubuntu packages + run: grep 'sudo apt install' INSTALL | sed 's/\$//' | sh + - name: Compile + run: make -C GUI/xephem + - name: Test + run: make -C tests + + compile-macos: + runs-on: macos-latest + steps: + - uses: actions/checkout@v2 + - name: Install OpenMotif + run: brew install openmotif && brew info openmotif + - name: Install OpenSSL + run: brew install openssl && brew info openssl + - name: Install XQuartz + run: brew install xquartz --cask && brew info xquartz + - name: Compile + run: make -C GUI/xephem