Fixing testOmcVersion for release omc version (#109) #164
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
name: CI Linux | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
env: | |
BUILD_TYPE: RelWithDebInfo | |
jobs: | |
test: | |
runs-on: ${{ matrix.os }} | |
env: | |
ORT_DIR: '${{ github.workspace }}/${{ matrix.ort_dir }}' | |
strategy: | |
matrix: | |
julia-version: ['1.9'] | |
julia-arch: [x64] | |
os: [ubuntu-latest] | |
include: | |
- os: ubuntu-latest | |
ort_url: 'https://github.com/microsoft/onnxruntime/releases/download/v1.12.1/onnxruntime-linux-x64-1.12.1.tgz' | |
ort_archieve_name: 'onnxruntime-linux-x64-1.12.1.tgz' | |
ort_dir: 'onnxruntime-linux-x64-1.12.1' | |
timeout-minutes: 60 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup CMake v3.21 | |
uses: jwlawson/[email protected] | |
with: | |
cmake-version: '3.21' | |
- run: cmake --version | |
- name: Download ONNX Runtime | |
run: | | |
wget -q ${{ matrix.ort_url }} | |
tar -xf ${{ matrix.ort_archieve_name }} | |
rm ${{ matrix.ort_archieve_name }} | |
- name: Setup OpenModelica | |
uses: AnHeuermann/[email protected] | |
with: | |
version: 'nightly' | |
packages: | | |
'omc' | |
'omsimulator' | |
- run: | | |
which omc | |
omc --version | |
- name: Setup Julia | |
uses: julia-actions/setup-julia@v1 | |
with: | |
version: ${{ matrix.julia-version }} | |
arch: ${{ matrix.julia-arch }} | |
- name: Cache Julia | |
uses: julia-actions/cache@v1 | |
- name: Build package | |
uses: julia-actions/julia-buildpkg@v1 | |
- name: Run tests | |
uses: julia-actions/julia-runtest@v1 |