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 authored and AnHeuermann committed Feb 23, 2023
1 parent 195f655 commit ae31c37
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/[email protected]
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

2 comments on commit ae31c37

@AnHeuermann
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator register()

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/78337

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.2.1 -m "<description of version>" ae31c375c4102484b4fec91bd1d41467c8b1c3f5
git push origin v0.2.1

Please sign in to comment.