Skip to content

Commit

Permalink
adjust github actions and pom
Browse files Browse the repository at this point in the history
  • Loading branch information
SHildebrandt committed Dec 20, 2023
1 parent 9217e9b commit a9cfb87
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 51 deletions.
26 changes: 14 additions & 12 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,19 @@ jobs:
matrix:
os: [ ubuntu-latest, macos-latest, windows-latest ]
steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
- uses: actions/checkout@v4
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: 1.8
java-version: 11
distribution: zulu
- name: Build with Maven
run: mvn -B package
- name: Upload coverage to codecov.io
uses: codecov/codecov-action@v1
with:
name: LogicNG
file: ./target/site/jacoco/jacoco.xml
flags: unittests
env_vars: OS
run: mvn -ntp package
# - name: Upload coverage to codecov.io
# uses: codecov/codecov-action@v3
# with:
# token: TODO ${{ secrets.CODECOV_TOKEN }}
# name: LogicNG-Core
# file: ./target/site/jacoco/jacoco.xml
# flags: unittests
# env_vars: OS
16 changes: 16 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: deploy

on: [ push, pull_request ]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: 11
distribution: zulu
- name: Build with Maven
run: mvn -ntp deploy -DskipTests
58 changes: 19 additions & 39 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -1,26 +1,6 @@
<!-- __ _ _ ________ -->
<!-- / / ____ ____ _(_)____/ | / / ____/ -->
<!-- / / / __ \/ __ `/ / ___/ |/ / / __ -->
<!-- / /___/ /_/ / /_/ / / /__/ /| / /_/ / -->
<!-- /_____/\____/\__, /_/\___/_/ |_/\____/ -->
<!-- /____/ -->
<!-- -->
<!-- The Next Generation Logic Library -->
<!-- -->
<!-- Copyright 2015-2023 Christoph Zengler -->
<!-- Copyright 2023-20xx BooleWorks GmbH -->
<!-- -->
<!-- Licensed under the Apache License, Version 2.0 (the "License"); -->
<!-- you may not use this file except in compliance with the License. -->
<!-- You may obtain a copy of the License at -->
<!-- -->
<!-- http://www.apache.org/licenses/LICENSE-2.0 -->
<!-- -->
<!-- Unless required by applicable law or agreed to in writing, software -->
<!-- distributed under the License is distributed on an "AS IS" BASIS, -->
<!-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or -->
<!-- implied. See the License for the specific language governing -->
<!-- permissions and limitations under the License. -->
<!-- SPDX-License-Identifier: Apache-2.0 and MIT -->
<!-- Copyright 2015-2023 Christoph Zengler -->
<!-- Copyright 2023-20xx BooleWorks GmbH -->

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
Expand Down Expand Up @@ -52,9 +32,9 @@
</developers>

<scm>
<connection>scm:git:git://github.com:logic-ng/LogicNG.git</connection>
<developerConnection>scm:git:ssh://github.com:logic-ng/LogicNG.git</developerConnection>
<url>https://github.com/logic-ng/LogicNG</url>
<connection>scm:git:git://github.com:booleworks/logicng-core.git</connection>
<developerConnection>scm:git:ssh://github.com:booleworks/logicng-core.git</developerConnection>
<url>https://github.com/booleworks/logicng-core</url>
</scm>

<properties>
Expand Down Expand Up @@ -313,19 +293,6 @@
</dependency>
</dependencies>

<pluginRepositories>
<pluginRepository>
<id>sonatype-nexus-snapshot</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories>

<profiles>
<profile>
<id>release</id>
Expand Down Expand Up @@ -391,4 +358,17 @@
</properties>
</profile>
</profiles>

<distributionManagement>
<repository>
<id>booleworks-registry</id>
<name>BooleWorks GitHub Registry</name>
<url>https://maven.pkg.github.com/booleworks/logicng-core</url>
</repository>
<snapshotRepository>
<id>booleworks-registry</id>
<name>BooleWorks GitHub Registry</name>
<url>https://maven.pkg.github.com/booleworks/logicng-core</url>
</snapshotRepository>
</distributionManagement>
</project>

0 comments on commit a9cfb87

Please sign in to comment.