Skip to content

try solution from https://github.com/orgs/community/discussions/58763 #28

try solution from https://github.com/orgs/community/discussions/58763

try solution from https://github.com/orgs/community/discussions/58763 #28

Workflow file for this run

name: InChI build matrix
on:
push:
workflow_dispatch:
jobs:
build-matrix:
strategy:
matrix:
os: [ubuntu-22.04, windows-2019, macos-14, gcc-latest, alpine]
include:
- os: ubuntu-22.04
name: Ubuntu 22.04
prebuild: sudo apt update && sudo apt install -y cmake ninja-build
- os: windows-2019
name: Windows Server 2019
prebuild: choco install ninja
- os: macos-14
name: MacOS 14
prebuild: brew install ninja
- os: ubuntu-22.04
name: Alpine Linux
prebuild: apk add bash git musl-dev gcc g++ make python3 py-pip cmake ninja
image: alpine:edge
- os: ubuntu-22.04
name: GCC latest
prebuild: apt update && apt install -y cmake ninja-build
image: gcc:latest
name: ${{ matrix.name }}
runs-on: ${{ matrix.os }}
container:
image: ${{ matrix.image || '' }}
steps:
- uses: actions/checkout@v4
- name: Set up Visual Studio shell
if: runner.os == 'Windows'
uses: egor-tensin/vs-shell@v2
with:
arch: x64
- name: Install build dependencies
run: ${{ matrix.prebuild }}
- name: Build InChI
run: |
cmake -B builddir -G Ninja
cmake --build builddir