From 411d1bf26e879aa4d0f17eaf7ab37ba156584dd8 Mon Sep 17 00:00:00 2001 From: Ted Turocy Date: Wed, 27 Dec 2023 15:42:32 +0000 Subject: [PATCH] Set up CI build of tools on push. --- .github/workflows/tools.yml | 69 +++++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 .github/workflows/tools.yml diff --git a/.github/workflows/tools.yml b/.github/workflows/tools.yml new file mode 100644 index 0000000..712093c --- /dev/null +++ b/.github/workflows/tools.yml @@ -0,0 +1,69 @@ +name: Build executables + +on: + push: + pull_request: + +jobs: + linux: + runs-on: ubuntu-latest + if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name + steps: + - uses: actions/checkout@v4 + - name: Install dependencies + run: sudo apt-get install -y automake autoconf + - name: Configure build with autotools + run: | + aclocal + automake --add-missing + autoconf + ./configure + - name: Make source tarball + run: make dist + - name: Build from source tarball + run: | + tar zxvf chadwick*.tar.gz + rm chadwick*.tar.gz + cd chadwick-* + ./configure + make + + macos: + runs-on: macos-latest + if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name + steps: + - uses: actions/checkout@v4 + - name: Install dependencies + run: brew install automake autoconf + - name: Configure build with autotools + run: | + aclocal + automake --add-missing + autoconf + ./configure + - name: Build tools + run: make + + windows: + runs-on: windows-latest + if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name + defaults: + run: + shell: msys2 {0} + steps: + - uses: actions/checkout@v4 + - uses: msys2/setup-msys2@v2 + with: + install: mingw-w64-x86_64-toolchain make automake autoconf + - name: Configure build with autotools + run: | + aclocal + automake --add-missing + autoconf + ./configure + - name: Build tools + run: make + - name: Store built Windows binaries + uses: actions/upload-artifact@v3 + with: + path: "*.exe"