Update: Improved old OpenGL performance by changing structure to 16 b… #133
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
| # This workflow uses actions that are not certified by GitHub. | |
| # They are provided by a third-party and are governed by | |
| # separate terms of service, privacy policy, and support | |
| # documentation. | |
| name: HBuild | |
| on: | |
| push: | |
| branches: | |
| - master | |
| paths: | |
| - "tools/hbuild/**" | |
| - ".github/workflows/hbuild.yml" | |
| permissions: | |
| contents: read | |
| jobs: | |
| build-linux: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: MrcSnm/setup-dlang@v2 | |
| with: | |
| redub: latest | |
| - name: 'Build' | |
| run: | | |
| # Build the project, with its main file included, without unittests | |
| cd tools/hbuild | |
| redub build -c ci --prefetch | |
| # Build and run tests, as defined by `unittest` configuration | |
| # In this mode, `mainSourceFile` is excluded and `version (unittest)` are included | |
| # See https://dub.pm/package-format-json.html#configurations | |
| - name: 'Upload' | |
| uses: actions/upload-artifact@v4.4.3 | |
| with: | |
| name: linux64-hbuild | |
| path: tools/hbuild/linux64-hbuild | |
| build-macos: | |
| runs-on: macos-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: MrcSnm/setup-dlang@v2 | |
| with: | |
| redub: latest | |
| compiler: ldc | |
| - name: 'Build' | |
| run: | | |
| # Build the project, with its main file included, without unittests | |
| cd tools/hbuild | |
| redub build -c ci-macos --prefetch | |
| - name: 'Upload' | |
| uses: actions/upload-artifact@v4.4.3 | |
| with: | |
| name: macos64-hbuild | |
| path: tools/hbuild/macos64-hbuild | |
| build-windows: | |
| runs-on: windows-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: MrcSnm/setup-dlang@v2 | |
| with: | |
| redub: latest | |
| - name: 'Build' | |
| run: | | |
| # Build the project, with its main file included, without unittests | |
| cd tools/hbuild | |
| redub build -c ci-win --prefetch | |
| mkdir win-release | |
| copy win64-hbuild.exe win-release/win64-hbuild.exe | |
| copy libcurl.dll win-release/libcurl.dll | |
| - name: 'Zip EXE with DLL' | |
| uses: thedoctor0/zip-release@0.7.1 | |
| with: | |
| type: 'zip' | |
| filename: 'win64-hbuild.zip' | |
| directory: 'tools/hbuild/' | |
| path: 'win-release' | |
| - name: 'Upload' | |
| uses: actions/upload-artifact@v4.4.3 | |
| with: | |
| name: win64-hbuild.zip | |
| path: tools/hbuild/win64-hbuild.zip | |
| update-release: | |
| runs-on: ubuntu-latest | |
| needs: [build-linux, build-macos, build-windows] | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: "Download build artifacts" | |
| uses: actions/download-artifact@v4.1.8 | |
| - name: "Update BuildAssets" | |
| uses: ncipollo/release-action@v1 | |
| with: | |
| artifacts: "win64-hbuild.zip/win64-hbuild.zip,linux64-hbuild/linux64-hbuild,macos64-hbuild/macos64-hbuild" | |
| allowUpdates: "true" | |
| tag: "BuildAssets.v1.0.0" | |