-
Notifications
You must be signed in to change notification settings - Fork 0
103 lines (86 loc) · 2.56 KB
/
build.yml
File metadata and controls
103 lines (86 loc) · 2.56 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
name: Build Jobs
on:
push:
pull_request:
branches:
- main
# Build all of the projects and run them against the CASE graph
jobs:
dotnet:
runs-on: ubuntu-latest
steps:
# Get the code from the repository
- name: Get Repo
uses: actions/checkout@v3
# Install the .NET SDK
- name: Setup .NET
uses: actions/setup-dotnet@v3.2.0
with:
dotnet-version: 6.x
# Build the project
- name: Build
run: dotnet build
working-directory: ./dotnet/
# Run the built CASE conversion example
- name: Run CASE Conversion
run: |
dotnet run ../data/geo.json ../output/dotnet.geojson
cat ../output/dotnet.geojson
working-directory: ./dotnet/
python:
runs-on: ubuntu-latest
strategy:
matrix:
# Test oldest and most current supported versions, per:
# https://www.python.org/downloads/
python-version:
- '3.8'
- '3.11'
steps:
# Get the code from the repository
- name: Get Repo
uses: actions/checkout@v3
# Install Python
- name: Setup Python
uses: actions/setup-python@v4.6.1
with:
python-version: ${{ matrix.python-version }}
# Install the rdflib dependency
- name: Install Dependencies
run: pip3 install rdflib
# Run the Python CASE conversion example
- name: Run CASE Conversion
run: |
python3 CASE2GeoJSON.py ../data/geo.json ../output/python.geojson
cat ../output/python.geojson
working-directory: ./python/
java:
runs-on: ubuntu-latest
strategy:
matrix:
# Test oldest and most current supported versions, per:
# https://adoptium.net/support/
java-version:
- '11'
- '20'
steps:
# Get the code from the repository
- name: Get Repo
uses: actions/checkout@v3
# Install Java
- name: Setup Java
uses: actions/setup-java@v3.11.0
with:
distribution: 'temurin'
java-version: ${{ matrix.java-version }}
cache: 'maven'
# Build the project
- name: Build Project
run: mvn compile assembly:single
working-directory: ./java/case2geo/
# Run the Java CASE conversion example
- name: Run CASE Conversion
run: |
java -jar ./target/case2geo-0.1.0.jar ../../data/geo.json ../../output/java.geojson
cat ../../output/java.geojson
working-directory: ./java/case2geo/