Skip to content
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.

Commit

Permalink
Skriv om også byggejobbane
Browse files Browse the repository at this point in the history
  • Loading branch information
madsop-nav committed Sep 6, 2024
1 parent 421b875 commit 239a6ce
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 12 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,22 @@ name: CI
on: push
jobs:
build:
runs-on: ubuntu-latest
runs-on: ubuntu-latest-8-cores
steps:
- uses: actions/checkout@v4
- name: Set up Java
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 21
cache: maven
- name: Build with Maven
run: mvn -B install
- name: Inject slug/short variables
uses: rlespinasse/github-slug-action@v4
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
with:
cache-encryption-key: ${{ secrets.gradlekey }}
dependency-graph: generate-and-submit
- name: Gradle test and build
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: ./gradlew :apps:${{ github.workflow }}:build --configuration-cache
7 changes: 5 additions & 2 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,11 @@ jobs:
distribution: temurin
java-version: 21

- name: Build with Maven
run: mvn -B install
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4

- name: Assemble
run: ./gradlew assemble -Dorg.gradle.jvmargs="-Dkotlin.daemon.jvmargs=-Xmx16g" --configuration-cache
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand Down
14 changes: 9 additions & 5 deletions .github/workflows/releaseGithub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
jobs:
release:
name: Create Release
runs-on: ubuntu-latest
runs-on: ubuntu-latest-8-cores
permissions:
contents: write
packages: write
Expand All @@ -34,15 +34,19 @@ jobs:
with:
distribution: temurin
java-version: 21
cache: maven
- name: Inject slug/short variables
uses: rlespinasse/github-slug-action@v4
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
with:
cache-encryption-key: ${{ secrets.gradlekey }}
dependency-graph: generate-and-submit
- name: Deploy artifacts to github maven repository
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
mvn -B versions:set -DnewVersion="$RELEASE_TAG"
mvn -B versions:commit
echo "Running release"
mvn -B --settings maven-settings.xml deploy -Dmaven.wagon.http.pool=false
gradle -Pversion="$RELEASE_TAG" publish
- name: Create Release
id: create_release
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ dependencies {
## Bygging
Koden bruker Jakarta-navnerommet, og forutsetter Java nyere enn 8.

`mvn install`
`gradle build`

## Gjøre endringer, release

Expand Down

0 comments on commit 239a6ce

Please sign in to comment.