Provide shaders via artifact repo #39
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: Build and upload shaders for graphene raster nodes to artifacts Repository | |
| on: | |
| push: | |
| pull_request: | |
| jobs: | |
| check: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: DeterminateSystems/nix-installer-action@main | |
| - uses: DeterminateSystems/magic-nix-cache-action@main | |
| - name: Build graphene raster nodes shaders | |
| run: nix build .nix#raster-nodes-shaders && cp result raster_nodes_shaders_entrypoint.wgsl | |
| - name: Upload graphene raster nodes shaders to artifacts repository | |
| run: | | |
| bash .github/workflows/scripts/artifact-upload.bash \ | |
| ${{ vars.ARTIFACTS_REPO_OWNER }} \ | |
| ${{ vars.ARTIFACTS_REPO_NAME }} \ | |
| ${{ vars.ARTIFACTS_REPO_BRANCH }} \ | |
| rev/${{ github.sha }}/raster_nodes_shaders_entrypoint.wgsl \ | |
| raster_nodes_shaders_entrypoint.wgsl \ | |
| "${{ github.sha }} raster_nodes_shaders_entrypoint.wgsl" \ | |
| ${{ secrets.ARTIFACTS_REPO_TOKEN }} |