-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added initial CI for building all examples (#36)
- Loading branch information
Showing
2 changed files
with
49 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |