Updated upload artifact version. Updated README #97
Workflow file for this run
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: Build CI | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: ${{ matrix.sys.os }} | |
strategy: | |
matrix: | |
sys: | |
- { os: windows-latest, shell: 'msys2 {0}' } | |
- { os: ubuntu-latest, shell: bash } | |
- { os: macos-latest, shell: bash } | |
defaults: | |
run: | |
shell: ${{ matrix.sys.shell }} | |
name: building OMParser.jl/lib/parser | |
steps: | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: 'zulu' | |
java-version: '21' | |
- name: setup julia environment | |
uses: julia-actions/setup-julia@v1 | |
with: | |
version: "1.10.0" | |
- name: setup msys2 environment | |
uses: msys2/setup-msys2@v2 | |
with: | |
update: false | |
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: configure the library and build | |
run: | | |
which gcc | |
gcc --version | |
cd lib/parser | |
autoconf | |
./configure | |
make | |
cd ../build/lib | |
tar -czvf ${{matrix.sys.os}}-library.tar.gz * | |
mv ${{matrix.sys.os}}-library.tar.gz '${{github.workspace}}/'. | |
- name: Build | |
# Always use bash to avoid having to escape quotes for Windows | |
shell: bash | |
run: julia --compiled-modules=no --color=yes --project -e 'import Pkg; Pkg.Registry.add("General"); Pkg.Registry.add(Pkg.RegistrySpec(url="https://github.com/JKRT/OpenModelicaRegistry.git")); Pkg.build(;verbose = true);Pkg.instantiate(); Pkg.resolve()' | |
- name: Test | |
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@v4 | |
with: | |
name: parser-library | |
path: ${{github.workspace}}/${{matrix.sys.os}}-library.tar.gz |