Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

Commit

Permalink
remove windows build
Browse files Browse the repository at this point in the history
  • Loading branch information
ArloL committed Nov 28, 2022
1 parent 7233fbb commit 83db52b
Showing 1 changed file with 2 additions and 38 deletions.
40 changes: 2 additions & 38 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -132,36 +132,10 @@ jobs:
path: target/artifacts
- name: Make sure build did not change anything
run: git diff --exit-code
windows:
runs-on: windows-latest
needs: version
env:
USER: runner
REVISION: ${{ needs.version.outputs.new_version }}
steps:
- uses: actions/checkout@v3.1.0
- uses: actions/setup-java@v3.6.0
with:
java-version: ${{ env.JAVA_VERSION }}
distribution: temurin
cache: 'maven'
- name: Build with Maven
run: |
.\mvnw --batch-mode -Dsha1="$env:GITHUB_SHA" -Drevision="$env:REVISION" verify
- name: Move artifacts
run: |
mkdir target/artifacts
copy target/${{ env.ARTIFACT }}-* target/artifacts
- uses: actions/upload-artifact@v3.1.1
with:
name: ${{ env.ARTIFACT }}-${{ github.job }}-${{ needs.version.outputs.new_version }}
path: target/artifacts
- name: Make sure build did not change anything
run: git diff --exit-code
release:
if: ${{ github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main' }}
runs-on: ubuntu-latest
needs: [version, macos, linux, windows]
needs: [version, macos, linux]
steps:
- uses: actions/checkout@v3.1.0
- name: Download all workflow run artifacts
Expand All @@ -171,7 +145,6 @@ jobs:
- name: Build project
working-directory: target
run: |
zip -r windows.zip ${{ env.ARTIFACT }}-windows-${{ needs.version.outputs.new_version }}/
zip -r linux.zip ${{ env.ARTIFACT }}-linux-${{ needs.version.outputs.new_version }}/
zip -r macos.zip ${{ env.ARTIFACT }}-macos-${{ needs.version.outputs.new_version }}/
- name: Create Release
Expand All @@ -193,15 +166,6 @@ jobs:
asset_path: ./target/linux.zip
asset_name: ${{ env.ARTIFACT }}-linux-${{ needs.version.outputs.new_version }}.zip
asset_content_type: application/zip
- name: Upload Release Asset
uses: actions/upload-release-asset@v1.0.2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./target/windows.zip
asset_name: ${{ env.ARTIFACT }}-windows-${{ needs.version.outputs.new_version }}.zip
asset_content_type: application/zip
- name: Upload Release Asset
uses: actions/upload-release-asset@v1.0.2
env:
Expand All @@ -219,7 +183,7 @@ jobs:
- name: Make sure build did not change anything
run: git diff --exit-code
deploy:
needs: [version, macos, linux, windows]
needs: [version, macos, linux]
if: ${{ github.event_name == 'push' && !startsWith(github.ref, 'refs/heads/dependabot/') }}
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit 83db52b

Please sign in to comment.