This repository was archived by the owner on Oct 7, 2025. It is now read-only.
fix install path #12
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 | |
| on: [push] | |
| jobs: | |
| Windows: | |
| name: windows-${{ matrix.config }} | |
| runs-on: windows-2025 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| config: [release, debug] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: submodules | |
| shell: bash | |
| run: | | |
| git submodule update --init --recursive --jobs 8 || echo "some submodules may have failed and it may be ok" | |
| - name: build | |
| shell: bash | |
| run: | | |
| root_dir=`pwd` | |
| mkdir build | |
| cd build | |
| cmake .. | |
| cmake --build . --config ${{ matrix.config }} ${paralel} | |
| cmake --install . --config ${{ matrix.config }} --prefix "${root_dir}/install" | |
| - name: upload | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: dawn-${{ runner.os }} | |
| path: install | |
| Linux: | |
| name: linux | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: submodules | |
| shell: bash | |
| run: | | |
| git submodule update --init --recursive --jobs 8 || echo "some submodules may have failed and it may be ok" | |
| - name: build | |
| shell: bash | |
| run: | | |
| root_dir=`pwd` | |
| mkdir build | |
| cd build | |
| cmake -DCMAKE_BUILD_TYPE=release .. | |
| cmake --build . ${paralel} | |
| cmake --install . --prefix "${root_dir}/install" | |
| - name: upload | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: dawn-${{ runner.os }} | |
| path: install | |
| Package: | |
| runs-on: ubuntu-latest | |
| needs: [Windows, Linux] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: download | |
| uses: actions/download-artifact@v4 | |
| with: | |
| path: ./ | |
| merge-multiple: true | |
| - name: package | |
| run: | | |
| mkdir -p install/dawn | |
| cd install/dawn | |
| cp ../../DawnConfig.cmake . | |
| cp -r ../include . | |
| mkdir lib | |
| cp ../lib/*.a lib | |
| cp ../lib/*.lib lib | |
| cd .. | |
| zip -r ../dawn.zip dawn | |
| - name: release | |
| uses: softprops/action-gh-release@v1 | |
| with: | |
| tag_name: latest | |
| name: "Latest build" | |
| files: dawn.zip | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |