add Windows MSI metadata and placeholder icon #5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build release artifacts | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| build-app-image: | |
| name: Build app-image (${{ matrix.label }}) | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - os: ubuntu-latest | |
| label: Linux | |
| artifact_name: xrayview-linux-app-image | |
| backend_output: java-frontend/target/xrayview | |
| - os: windows-latest | |
| label: Windows | |
| artifact_name: xrayview-windows-app-image | |
| backend_output: java-frontend/target/xrayview.exe | |
| defaults: | |
| run: | |
| shell: bash | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version-file: go.mod | |
| cache: true | |
| - name: Set up Java | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: temurin | |
| java-version: '21' | |
| cache: maven | |
| - name: Build Go backend | |
| run: go build -o "${{ matrix.backend_output }}" ./cmd/xrayview | |
| - name: Build Java frontend | |
| run: mvn -B -f java-frontend/pom.xml package | |
| - name: Build app-image | |
| run: bash java-frontend/package-app-image.sh "${{ matrix.backend_output }}" | |
| - name: Upload app-image artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: ${{ matrix.artifact_name }} | |
| path: java-frontend/target/app-image/XRayView | |
| if-no-files-found: error |