Skip to content

Build

Build #13

Workflow file for this run

name: Build
on:
workflow_dispatch:
jobs:
build-on-linux:
name: Build on Linux
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Unzip
run: bzcat wcslib-8.2.2.tar.bz2 | tar pvxf -
- name: Configure
working-directory: wcslib-8.2.2
run: ./configure
- name: Make
working-directory: wcslib-8.2.2
run: make check
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: libwcs
path: |
wcslib-8.2.2/C/libwcs.so.8.2.2
retention-days: 7
build-on-windows:
name: Build on Windows
runs-on: windows-latest
needs: build-on-linux
defaults:
run:
shell: msys2 {0}
steps:
- name: Set up MSYS2
uses: msys2/setup-msys2@v2
with:
msystem: mingw64
install: mingw-w64-x86_64-openssl
- name: Install GCC
run: pacman --noconfirm -S mingw-w64-x86_64-gcc diffutils make
- name: Checkout
uses: actions/checkout@v3
- name: Unzip
run: bzcat wcslib-8.2.2.tar.bz2 | tar pvxf -
- name: Configure
working-directory: wcslib-8.2.2
run: ./configure
- name: Make
working-directory: wcslib-8.2.2
run: make check CFLAGS=-DNO_OLDNAMES
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: libwcs
path: |
wcslib-8.2.2/C/libwcs.dll.8.2.2
retention-days: 7