Skip to content

Commit

Permalink
Enhance workflow and fix Node, Java and ANT version
Browse files Browse the repository at this point in the history
  • Loading branch information
crazy-max committed Apr 4, 2022
1 parent d2f0a76 commit 8576f70
Showing 1 changed file with 37 additions and 1 deletion.
38 changes: 37 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@ on:
- '*'
pull_request:

env:
GO_VERSION: "1.17"
NODE_VERSION: "16"
JAVA_VERSION: "11"
ANT_VERSION: "1.10.8"
JAVA_TOOL_OPTIONS: "-Dfile.encoding=UTF8"

jobs:
build:
runs-on: windows-latest
Expand All @@ -18,7 +25,36 @@ jobs:
name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17
go-version: ${{ env.GO_VERSION }}
-
name: Set up Node
uses: actions/setup-node@v2
with:
node-version: ${{ env.NODE_VERSION }}
-
name: Set up Java
uses: actions/setup-java@v2
with:
distribution: adopt
java-version: ${{ env.JAVA_VERSION }}
-
name: Set up ANT
run: |
choco install ant --no-progress --force -y --version $Env:ANT_VERSION
$Env:PATH = "C:\ProgramData\chocolatey\lib\ant\tools\apache-ant-$Env:ANT_VERSION\bin;$Env:PATH"
echo "ANT_HOME=C:\ProgramData\chocolatey\lib\ant\tools\apache-ant-$Env:ANT_VERSION" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf-8 -Append
-
name: Java version
run: |
java -XshowSettings:properties -version
-
name: ANT version
run: |
ant -version
-
name: Node version
run: |
node --version
-
name: Config
run: |
Expand Down

0 comments on commit 8576f70

Please sign in to comment.