Skip to content

Commit

Permalink
Switch CI to GitHub action
Browse files Browse the repository at this point in the history
  - Matrix tests possible for different versions of Julia or OMC.
  - Use AnHeuermann/setup-OpenModelica to set up OpenModelica
  - Use setup-julia for julia
  • Loading branch information
AnHeuermann committed Feb 23, 2023
1 parent 84a6e76 commit d9f41ed
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 62 deletions.
32 changes: 0 additions & 32 deletions .CI/Jenkinsfile

This file was deleted.

30 changes: 0 additions & 30 deletions .CI/docker/Dockerfile

This file was deleted.

43 changes: 43 additions & 0 deletions .github/workflows/Test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Test

on:
push:
branches: ['master', 'maintenance/*']
pull_request:
workflow_dispatch:

jobs:
test:
runs-on: ${{ matrix.os }}
timeout-minutes: 60
strategy:
fail-fast: false
matrix:
julia-version: ['1.0.5', '1.8']
julia-arch: ['x64']
os: ['ubuntu-latest', 'windows-latest']
omc-version: ['stable']

steps:
- uses: actions/checkout@v3

- name: "Set up OpenModelica Compiler"
uses: AnHeuermann/setup-openmodelica@v0.4
with:
version: ${{ matrix.omc-version }}
packages: |
omc
- run: "omc --version"

- name: "Set up Julia"
uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.julia-version }}
arch: ${{ matrix.julia-arch }}

- name: "Build OMJulia"
uses: julia-actions/julia-buildpkg@v1

- name: "Test OMJulia"
uses: julia-actions/julia-runtest@v1

0 comments on commit d9f41ed

Please sign in to comment.