filcuc / dotherside

C language library for creating bindings for the Qt QML language
Other
201 stars 40 forks source link

Add OSX Travis configuration #43

Open filcuc opened 8 years ago

filcuc commented 8 years ago

As pointed out in #42 DOtherSide build just fine on OSX. We should updated the .travis file for adding a new OSX configuration.

kassane commented 3 years ago

I had recently been working on using CI, even though this integration is still unfinished. I have found that an error occurs at the end of the liking during the test. Note: I don't have any experience with apple products.

Status

Linking error: https://github.com/kassane/qml_zig/runs/2079540368?check_suite_focus=true#step:6:64

OSX - Github actions

name: macOS

on: [push, pull_request]

jobs:
  build:
    runs-on: macos-latest
    steps:
      - uses: actions/checkout@v2
        with:
          submodules: recursive
          fetch-depth: 0

      - name: Install
        run: brew install ninja zig --HEAD

      - name: Get specific version CMake, v3.19.2
        uses: lukka/get-cmake@v3.19.2

      - name: Install Qt
        uses: jurplel/install-qt-action@v2
        with:
          version: 5.15.2
          dir: '${{ github.workspace }}/build/'

      - name: Build & Tests
        run: |
            QTDIR="$GITHUB_WORKSPACE/build/Qt/5.15.2/clang_64" && \
            PATH="${QTDIR}/bin:$PATH" && LDFLAGS=-L${QTDIR}/lib && \
            CPPFLAGS=-I${QTDIR}/include && \
            zig build Hello -Drelease-safe -Dtarget=native-native
kassane commented 3 years ago

I had recently been working on using CI, even though this integration is still unfinished. I have found that an error occurs at the end of the liking during the test. Note: I don't have any experience with apple products.

Fixed! Finally works. See: https://github.com/kassane/qml_zig/runs/2753407826#step:7:30