Skip to content

Added fuzzy lookup as well. Provided a way to use it with Github Models. #2

Added fuzzy lookup as well. Provided a way to use it with Github Models.

Added fuzzy lookup as well. Provided a way to use it with Github Models. #2

Workflow file for this run

name: CI
on:
push:
branches: [master]
pull_request:
jobs:
test:
name: Julia ${{ matrix.julia-version }} / ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
julia-version: ["1.12"]
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v2
with:
version: ${{ matrix.julia-version }}
- uses: actions/cache@v4
with:
path: |
~/.julia/packages
~/.julia/compiled
key: ${{ runner.os }}-julia-${{ matrix.julia-version }}-${{ hashFiles('Project.toml') }}
restore-keys: |
${{ runner.os }}-julia-${{ matrix.julia-version }}-
- name: Instantiate
run: julia --project -e 'import Pkg; Pkg.instantiate()'
- name: Build native dependencies
run: |
which unzip || sudo apt-get install -y --no-install-recommends unzip
JULIA_VER=$(julia -e 'print(VERSION.major, ".", VERSION.minor)')
PKG_SRC=$(julia --project -e 'print(Base.locate_package(Base.identify_package("OMParser")))')
PKG_ROOT=$(dirname $(dirname "$PKG_SRC"))
LIB_DIR="$PKG_ROOT/lib/ubuntu"
mkdir -p "$LIB_DIR"
URL="https://github.com/OpenModelica/OMParser.jl/releases/download/Latest-ubuntu-latest-julia-${JULIA_VER}/parser-library-ubuntu-latest-julia-${JULIA_VER}.zip"
curl -fsSL "$URL" -o /tmp/omparser.zip
unzip -o /tmp/omparser.zip -d "$LIB_DIR"
rm /tmp/omparser.zip
- name: Run tests
run: julia --project -e 'import Pkg; Pkg.test()'