Skip to content

Commit

Permalink
Update build and deps
Browse files Browse the repository at this point in the history
  • Loading branch information
pomadchin committed May 13, 2024
1 parent ce9296f commit 797359e
Show file tree
Hide file tree
Showing 77 changed files with 1,787 additions and 2,236 deletions.
104 changes: 0 additions & 104 deletions .circleci/config.yml

This file was deleted.

6 changes: 6 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
22 changes: 22 additions & 0 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name-template: '$NEXT_MINOR_VERSION'
tag-template: 'v$NEXT_MINOR_VERSION'
categories:
- title: 'Added'
labels:
- 'feature'
- title: 'Changed'
labels:
- 'enhancement'
- 'dependency-update'
- title: 'Fixed'
labels:
- 'fix'
- 'bugfix'
- 'bug'
exclude-labels:
- 'skip-changelog'
- 'docs'
- 'build'
change-template: '- $TITLE [#$NUMBER](https://github.com/pomadchin/tagless-mid/pull/$NUMBER) (@$AUTHOR)'
template: |
$CHANGES
61 changes: 61 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name: CI
on:
pull_request:
branches: ['**']
push:
branches: ['**']
tags: [v*]
jobs:
build:
name: Build and Test
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != 'geotrellis/maml'
strategy:
matrix:
os: [ubuntu-latest]
java: [11, 17]
distribution: [temurin]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: coursier/cache-action@v6
- uses: actions/setup-java@v4
with:
distribution: ${{ matrix.distribution }}
java-version: ${{ matrix.java }}

- name: Check formatting
run: sbt scalafmtCheckAll

- name: Build project
run: sbt +test

publish:
name: Publish Artifacts
needs: [build]
if: github.event_name != 'pull_request' && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v'))
strategy:
matrix:
os: [ubuntu-latest]
java: [11]
distribution: [temurin]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: coursier/cache-action@v6
- uses: actions/setup-java@v4
with:
distribution: ${{ matrix.distribution }}
java-version: ${{ matrix.java }}

- name: Release
run: sbt ci-release
env:
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
PGP_SECRET: ${{ secrets.PGP_SECRET }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
if: ${{ env.SONATYPE_PASSWORD != '' && env.SONATYPE_USERNAME != '' }}
22 changes: 22 additions & 0 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Release Drafter

on:
push:
branches:
- main
pull_request:
types: [opened, reopened, synchronize]

permissions:
contents: read

jobs:
update_release_draft:
permissions:
contents: write
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: release-drafter/release-drafter@v6
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
94 changes: 51 additions & 43 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,53 +1,61 @@
*.class
*.log
# Operating System Files

*.DS_Store
Thumbs.db

# Build Files

index.html
index.js
package.html
lib
site/
docs/_build/

project/.boot
project/boot
project/plugins/project
project/plugins/target
project/target
bin
target
.ensime
\#*#
*~
.#*
.lib
*.aux.xml
*.jar
*.crc
_SUCCESS

*.ivy
*.pyc
.project
build/
.gradle
cmake-build-debug

# Eclipse Project Files

.classpath
.cache
.project
.settings
.history
.idea
.DS_Store

# IntelliJ IDEA Files

*.iml
*.swp
*.swo
*.sublime-*
.vagrant
*.ipr
*.iws
*.idea

# Spring Bootstrap artifacts

dependency-reduced-pom.xml
README.html

lib
index.html
index.js
.ensime*
# Sublime files

nohup.out
*.sublime-workspace

site/
.metadata/
# VSCode files

.vscode
.history

# Metals

.metals
.bloop
.bloop
metals.sbt

# SBT

.bsp

# Test data files #

java/data

# Compiled libs #

java/*.dylib
java/*.so
java/*dll

*.log
14 changes: 13 additions & 1 deletion .scalafmt.conf
Original file line number Diff line number Diff line change
@@ -1 +1,13 @@
version=2.0.0-RC4
version=3.8.1
runner.dialect = scala3
align.openParenCallSite = true
align.openParenDefnSite = true
maxColumn = 150
continuationIndent.defnSite = 2
assumeStandardLibraryStripMargin = true
danglingParentheses.preset = true
rewrite.rules = [AvoidInfix, SortImports, RedundantParens, SortModifiers]
docstrings = JavaDoc
newlines.afterCurlyLambda = preserve
docstrings.style = Asterisk
docstrings.oneline = unfold
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Map Algebra Modeling Language

[![CircleCI](https://circleci.com/gh/geotrellis/maml.svg?style=svg)](https://circleci.com/gh/geotrellis/maml) [![Join the chat at https://gitter.im/geotrellis/geotrellis](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/geotrellis/geotrellis?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
[![CI](https://github.com/geotrellis/maml/actions/workflows/ci.yml/badge.svg)](https://github.com/geotrellis/maml/actions/workflows/ci.yml) [![Join the chat at https://gitter.im/geotrellis/geotrellis](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/geotrellis/geotrellis?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

Azavea has been developing Map Algebra Modeling Language (MAML) as part of a NASA grant in [Raster Foundry](https://www.rasterfoundry.com/). MAML is used to create a declarative structure that describes a combination of map algebra operations. This structure may be evaluated against a given collection of datasets to produce a result. Critically, the evaluation logic is not specified in MAML, only the semantic meaning of the operations. This separation allows for multiple interpreters to exist that operate in different computational contexts.

Expand Down
Loading

0 comments on commit 797359e

Please sign in to comment.