Skip to content

Commit

Permalink
Updated upload artifact version. Updated README (#20)
Browse files Browse the repository at this point in the history
* Updated upload artifact version. Updated README

* Updated the build for macOS

* Explicitly tell macOS to install autoconf

* Updated upload artifact to @V3

# Note
I believe that this job now built the parser for arm macs, but I do not have one to test it on.
  • Loading branch information
JKRT authored Oct 3, 2024
1 parent 459d39e commit 189d0f7
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 9 deletions.
19 changes: 15 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
distribution: 'zulu'
java-version: '21'
- name: setup julia environment
uses: julia-actions/setup-julia@v1
uses: julia-actions/setup-julia@v2
with:
version: "1.10.0"
- name: setup msys2 environment
Expand All @@ -34,12 +34,23 @@ jobs:
platform-check-severity: warn
install: autoconf automake m4 pkg-config libtool base-devel mingw-w64-x86_64-toolchain
path-type: inherit # to find julia!

- name: set git to use LF on Windows
if: contains(matrix.sys.os, 'windows')
run: |
git config --system core.autocrlf false
git config --system core.eol lf
- uses: actions/checkout@v2
- name: Install autotools if the system is macOS
if: contains(matrix.sys.os, 'macOS')
run: |
brew install autoconf
brew install automake
brew install m4
brew install pkg-config
brew install libtool
- uses: actions/checkout@v3
- name: configure the library and build
run: |
which gcc
Expand All @@ -61,7 +72,7 @@ jobs:
run: julia --color=yes --project -e 'import Pkg; Pkg.add(Pkg.PackageSpec(url="https://github.com/OpenModelica/Absyn.jl.git", rev="master")); Pkg.test("Absyn"); Pkg.test("OMParser")'

- name: upload library
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: parser-library
path: ${{github.workspace}}/${{matrix.sys.os}}-library.tar.gz
path: ${{github.workspace}}/${{matrix.sys.os}}-library.tar.gz
4 changes: 2 additions & 2 deletions .github/workflows/manual.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,10 @@ jobs:
mv ${{matrix.sys.os}}-library.tar.gz '${{github.workspace}}/'.
- name: Run the testsuite
run: julia --color=yes --project -e 'import Pkg; Pkg.add(Pkg.PackageSpec(url="https://github.com/OpenModelica/Absyn.jl.git", rev="master")); Pkg.test("Absyn"); Pkg.test("OMParser")'
run: julia --color=yes --project -e 'import Pkg; Pkg.add(Pkg.PackageSpec(url="https://github.com/OpenModelica/Absyn.jl.git", rev="master")); Pkg.test("Absyn"); Pkg.test("OMParser")'

- name: upload library
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: parser-library
path: ${{github.workspace}}/${{matrix.sys.os}}-library.tar.gz
Expand Down
4 changes: 2 additions & 2 deletions deps/build.jl
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@ PATH_TO_EXT = realpath("$(pwd())/../lib/ext")


@static if v"1.10.0" > VERSION
throw("precompilation is currently only supported for Julia version 1.10 or greater. For prior versions of Julia please download and extract the libraries available at https://github.com/OpenModelica/OMParser.jl/releases")
throw("Building OMParser with precompiled shared libraries is currently only supported for Julia version 1.10 or greater. For prior versions of Julia please download and extract the libraries available at https://github.com/OpenModelica/OMParser.jl/releases or build the libraries in the lib subdirectory.")
end

@static if Sys.iswindows()
#= Download shared libraries (DLLS for Windows)=#
#= Download the shared libraries (DLLS for Windows) =#
extractTar("windows-latest-library";
URL="https://github.com/OpenModelica/OMParser.jl/releases/download/Latest-windows-latest/windows-latest-library.tar.gz")
elseif Sys.islinux()
Expand Down
5 changes: 4 additions & 1 deletion lib/README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
Email [email protected] or [email protected] for questions.
# Build instructions
See the second README in the parser subfolder.

# Contact
Email [email protected] or [email protected] for questions.

0 comments on commit 189d0f7

Please sign in to comment.