Skip to content

Commit

Permalink
Added initial CI for building all examples (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
filcuc authored Dec 4, 2021
1 parent aaab5db commit 6f9cf5f
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 4 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# This is a basic workflow to help you get started with Actions

name: CI

# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [ master ]
pull_request:
branches: [ master ]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:
test:
strategy:
matrix:
os: ['windows-latest', 'macos-latest', 'ubuntu-latest']
nim: ['devel', 'version-1-6', 'version-1-4', 'version-1-2']

name: Nim ${{ matrix.nim }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: alaviss/[email protected]
with:
path: 'nim'
version: ${{ matrix.nim }}
- run: nimble buildExamples
22 changes: 18 additions & 4 deletions nimqml.nimble
Original file line number Diff line number Diff line change
@@ -1,10 +1,24 @@
[Package]
name = "nimqml"
# Package

version = "0.9.0"
author = "Filippo Cucchetto"
description = "QML bindings for Nim"
license = "LGPLv3"
srcDir = "src"

[Deps]
Requires: "nim >= 1.2.0"
# Deps

requires "nim >= 1.2.0"


task buildExamples, "Build examples":
exec "nim c examples/helloworld/main"
exec "nim c examples/abstractitemmodel/main"
exec "nim c examples/charts/main"
exec "nim c examples/connections/main"
exec "nim c examples/contactapp/main"
exec "nim c examples/helloworld/main"
exec "nim c examples/qmlregistertype/main"
exec "nim c examples/resourcebundling/main"
exec "nim c examples/simpledata/main"
exec "nim c examples/slotsandproperties/main"

0 comments on commit 6f9cf5f

Please sign in to comment.