Version 1.9.1 #7
Workflow file for this run
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: Release on Tag | |
| on: | |
| push: | |
| tags: | |
| - 'v*' # triggers on v1.0.0, v2.3.4, etc. | |
| permissions: | |
| contents: write # required to create releases | |
| jobs: | |
| build: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, windows-latest] | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - name: Install dependencies (Linux) | |
| if: runner.os == 'Linux' | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y \ | |
| build-essential cmake \ | |
| libgl1-mesa-dev libx11-dev libxrandr-dev \ | |
| libxinerama-dev libxcursor-dev libxi-dev \ | |
| libwayland-dev libxkbcommon-dev | |
| - name: Configure and build (Linux) | |
| if: runner.os == 'Linux' | |
| run: | | |
| mkdir build | |
| cd build | |
| cmake .. -DCMAKE_BUILD_TYPE=Release | |
| make | |
| - name: Configure and build (Windows) | |
| if: runner.os == 'Windows' | |
| run: | | |
| mkdir build | |
| cd build | |
| cmake .. -DCMAKE_BUILD_TYPE=Release | |
| cmake --build . --config Release | |
| - name: Upload Linux artifact | |
| if: runner.os == 'Linux' | |
| uses: actions/upload-artifact@v6 | |
| with: | |
| name: EntropyVisualizer-Linux | |
| path: build/EntropyVisualizer | |
| - name: Upload Windows artifact | |
| if: runner.os == 'Windows' | |
| uses: actions/upload-artifact@v6 | |
| with: | |
| name: EntropyVisualizer-Windows | |
| path: build/Release/EntropyVisualizer.exe | |
| release: | |
| needs: build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Download Linux artifact | |
| uses: actions/download-artifact@v6 | |
| with: | |
| name: EntropyVisualizer-Linux | |
| path: artifacts/linux | |
| - name: Download Windows artifact | |
| uses: actions/download-artifact@v6 | |
| with: | |
| name: EntropyVisualizer-Windows | |
| path: artifacts/windows | |
| - name: Create GitHub Release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| tag_name: ${{ github.ref_name }} | |
| name: Release ${{ github.ref_name }} | |
| draft: false | |
| prerelease: false | |
| files: | | |
| artifacts/linux/EntropyVisualizer | |
| artifacts/windows/EntropyVisualizer.exe |