diff --git a/.github/workflows/omjl.yml b/.github/workflows/omjl.yml new file mode 100644 index 0000000..8a81d51 --- /dev/null +++ b/.github/workflows/omjl.yml @@ -0,0 +1,27 @@ +name: OM.jl integration + +# Tests this package against the other OM.jl packages at the matching branch +# and runs OM.jl's test suite with it, on Julia 1.13, so that a change +# here cannot break OM.jl unnoticed. The workflow lives in JKRT/OM.jl: +# .github/workflows/omjl-ci.yml. +on: + pull_request: + push: + branches: [master, "1.13"] + workflow_dispatch: + +permissions: + contents: read + actions: write # julia-actions/cache deletes the caches it replaces + +concurrency: + group: omjl-${{ github.ref }} + # Superseded PR runs only; every push to master/1.13 is tested. + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + +jobs: + omjl: + uses: JKRT/OM.jl/.github/workflows/omjl-ci.yml@master + with: + package: SCode + julia-versions: '["1.13"]' # OM.jl's packages require Julia 1.13 diff --git a/LICENSE.md b/LICENSE.md index 6aa1d87..73c3fa9 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -3,7 +3,7 @@ /* * This file is part of OpenModelica. * - * Copyright (c) 1998-CurrentYear, Open Source Modelica Consortium (OSMC), + * Copyright (c) 1998-2026, Open Source Modelica Consortium (OSMC), * c/o Linköpings universitet, Department of Computer and Information Science, * SE-58183 Linköping, Sweden. * diff --git a/Project.toml b/Project.toml index 7c8961d..176b2f9 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "SCode" uuid = "350d45b0-c210-11e9-3b9e-fdad65bb3d46" authors = ["johti "] -version = "1.1.1" +version = "1.2.0" [deps] Absyn = "ce2f92e2-a952-11e9-0543-8b443f216f1d" @@ -10,7 +10,7 @@ ImmutableList = "4a558cac-c1ed-11e9-20da-3584bcd8709a" MetaModelica = "9d7f2a79-07b5-5542-8b19-c0100dda6b06" [compat] -Absyn = "1.3" -ImmutableList = "0.3" -MetaModelica = "0" -julia = "1.12" +Absyn = "1.3.5" +ImmutableList = "0.4.2" +MetaModelica = "0.4.2" +julia = "1.13" diff --git a/src/SCode.jl b/src/SCode.jl index 7af58f1..ebdadbd 100644 --- a/src/SCode.jl +++ b/src/SCode.jl @@ -726,6 +726,10 @@ const defaultParamAttr = ATTR(list(), POTENTIAL(), NON_PARALLEL(), PARAM(), Absy const defaultConstAttr = ATTR(list(), POTENTIAL(), NON_PARALLEL(), CONST(), Absyn.BIDIR(), Absyn.NONFIELD(), false)::Attributes +const defaultInputAttr = ATTR(list(), POTENTIAL(), NON_PARALLEL(), VAR(), Absyn.INPUT(), Absyn.NONFIELD(), false)::Attributes + +const defaultOutputAttr = ATTR(list(), POTENTIAL(), NON_PARALLEL(), VAR(), Absyn.OUTPUT(), Absyn.NONFIELD(), false)::Attributes + #= So that we can use wildcard imports and named imports when they do occur. Not good Julia practice =# @exportAll() end