Skip to content

Commit

Permalink
use maven cache and run tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dashaun committed May 23, 2023
1 parent 752ad92 commit 6e15bca
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 48 deletions.
36 changes: 0 additions & 36 deletions .github/workflows/mvn-test.yml

This file was deleted.

19 changes: 9 additions & 10 deletions .github/workflows/tagged-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,18 @@ jobs:
with:
ref: '${{github.ref_name}}'

- name: Cache Maven packages
uses: actions/cache@v1
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2

- name: Build Image
run: ./mvnw -Pnative native:compile -DskipTests
run: ./mvnw -Pnative native:compile

- uses: ncipollo/release-action@v1
with:
artifacts: "./target/initializr-plusplus-linux-x86_64,LICENSE"
allowUpdates: true
token: ${{ secrets.GH_TOKEN }}

# - uses: "marvinpinto/action-automatic-releases@latest"
# with:
# repo_token: "${{ secrets.GH_TOKEN }}"
# prerelease: false
# files: |
# LICENSE
# ./target/initializr-plusplus-linux-x86_64
token: ${{ secrets.GH_TOKEN }}
9 changes: 8 additions & 1 deletion .github/workflows/tagged-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,15 @@ jobs:
with:
ref: '${{github.ref_name}}'

- name: Cache Maven packages
uses: actions/cache@v1
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2

- name: Build Image
run: ./mvnw -Pnative native:compile -DskipTests
run: ./mvnw -Pnative native:compile

- uses: ncipollo/release-action@v1
with:
Expand Down
9 changes: 8 additions & 1 deletion .github/workflows/tagged-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,16 @@ jobs:
- uses: actions/checkout@v3
with:
ref: '${{github.ref_name}}'

- name: Cache Maven packages
uses: actions/cache@v1
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2

- name: Build Image
run: .\mvnw.cmd -Pnative native:compile -DskipTests
run: .\mvnw.cmd -Pnative native:compile

- uses: ncipollo/release-action@v1
with:
Expand Down

0 comments on commit 6e15bca

Please sign in to comment.