-
Notifications
You must be signed in to change notification settings - Fork 2
32 lines (29 loc) · 1.14 KB
/
build-windows.yml
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
# This workflow will build a Java project with Maven
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
name: Tycho build for windows
on: workflow_dispatch
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'adopt'
architecture: x64
- 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 with Maven
env:
USER1_GDRIVE_USERNAME: ${{ secrets.USER1_GDRIVE_USERNAME }}
USER1_GDRIVE_REFRESH_TOKEN: ${{ secrets.USER1_GDRIVE_REFRESH_TOKEN }}
USER2_GDRIVE_USERNAME: ${{ secrets.USER2_GDRIVE_USERNAME }}
USER2_GDRIVE_REFRESH_TOKEN: ${{ secrets.USER2_GDRIVE_REFRESH_TOKEN }}
GITHUB_PERSONAL_ACCESS_TOKEN: ${{ secrets.GITHUB_PERSONAL_ACCESS_TOKEN }}
run: ./mvnw clean verify -P target-2021-12 --fail-at-end