Skip to content

Commit

Permalink
- Update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ParticleG committed Aug 4, 2024
1 parent db4eef0 commit 1268051
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ jobs:
CC: gcc-14
CXX: g++-14
run: |
cmake -S "${{ github.workspace }}" -B "${{ github.workspace }}/${{ env.OUTPUT_FOLDER }}"
cmake --build "${{ github.workspace }}/${{ env.OUTPUT_FOLDER }}" --target Studio26F --config ${{ matrix.config }}
cmake -S "${{ github.workspace }}" -B "${{ github.workspace }}/${{ env.OUTPUT_FOLDER }}" -DCMAKE_BUILD_TYPE=${{ matrix.config }}
cmake --build "${{ github.workspace }}/${{ env.OUTPUT_FOLDER }}" --target Studio26F
- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
Expand Down Expand Up @@ -92,4 +92,19 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: Studio26F_${{ needs.get-info.outputs.commitHash }}_${{ GITHUB.RUN_NUMBER }}_Windows_${{ matrix.config }}
path: "${{ env.OUTPUT_FOLDER }}"
path: "${{ env.OUTPUT_FOLDER }}/${{ matrix.config }}"
- name: Prepare for release
if: ${{ (startsWith(github.ref, 'refs/tags/pre') || startsWith(github.ref, 'refs/tags/v')) && matrix.config == 'release'}}
shell: bash
run: |
mkdir -p ${{ env.RELEASE_FOLDER }}
cp ${{ env.OUTPUT_FOLDER }}/*.dll ${{ env.RELEASE_FOLDER }}
cp ${{ env.OUTPUT_FOLDER }}/*.exe ${{ env.RELEASE_FOLDER }}
- name: Upload release
if: ${{ (startsWith(github.ref, 'refs/tags/pre') || startsWith(github.ref, 'refs/tags/v')) && matrix.config == 'release'}}
uses: ncipollo/release-action@v1
with:
allowUpdates: true
artifacts: |
${{ env.RELEASE_FOLDER }}/*
prerelease: ${{ startsWith(github.ref, 'refs/tags/pre') }}

0 comments on commit 1268051

Please sign in to comment.