add mandelbulb #9
Workflow file for this run
This file contains 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: Multi-OS Binary Release | |
on: | |
push: | |
tags: | |
- 'v*' | |
permissions: write-all | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
bin: [footsteps, blobs, fibonacci, triangles, peace, attractors, waves, waves2, cafe_wall, munker, pdiamond, lilac, fourier, nblur, pixelrain, pina, hole,neuralnet, bhole, oscillation, chladni, hilbert, hilbertimg, snowflake, mandelbrot, leviant, eyes, imgblob, scramble, pixelate, rainbowimage,gaborill,munkerclock, voronoi, lorenz, ulam, dfft, butter2d, gaborwgpu, galaxy, chladniwgpu, snowflakewgpu, spiralimgwgpu, neuralnetwgpu, imlenswgpu, fbmflowgpu, lovewgpu, neurons, asahi, voronoiwgpu, fluid, asahi2, sinh, tree, expmandelbrotgpu, pupils, pixelflow,darkclouds, tunnel, neurons2, nebula, pixelsum, smoothneurons,gaussiansplat,gaborimage,rorschach,stripes,psychology,3dneuron,mandelbulb] | |
include: | |
- target: x86_64-unknown-linux-gnu | |
ext: "" | |
- target: x86_64-pc-windows-gnu | |
ext: ".exe" | |
- target: x86_64-apple-darwin | |
ext: "" | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install Rust toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
override: true | |
target: ${{ matrix.target }} | |
- name: Build binary | |
uses: actions-rs/cargo@v1 | |
with: | |
command: build | |
args: --release --bin ${{ matrix.bin }} | |
- name: Prepare assets | |
run: | | |
mkdir -p release/${{ matrix.bin }} | |
cp "target/release/${{ matrix.bin }}${{ matrix.ext }}" "release/${{ matrix.bin }}/${{ matrix.bin }}${{ matrix.ext }}" | |
shell: bash | |
- name: Zip assets | |
run: | | |
if ("${{ runner.os }}" -eq "Windows") { | |
Compress-Archive -Path "release/${{ matrix.bin }}/*" -DestinationPath "${{ matrix.bin }}-${{ matrix.os }}.zip" | |
} else { | |
zip -r "${{ matrix.bin }}-${{ matrix.os }}.zip" "release/${{ matrix.bin }}" | |
} | |
shell: pwsh | |
- name: Upload artifact | |
uses: actions/upload-artifact@v2 | |
with: | |
name: ${{ matrix.bin }}-${{ matrix.os }} | |
path: "${{ matrix.bin }}-${{ matrix.os }}.zip" | |
release: | |
needs: [build] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Download all artifacts | |
uses: actions/download-artifact@v2 | |
with: | |
path: downloaded-artifacts | |
- name: List downloaded artifacts directory structure | |
run: | | |
echo "Listing the structure of downloaded-artifacts directory:" | |
tree downloaded-artifacts || ls -R downloaded-artifacts | |
- name: List contents of each artifact directory | |
run: | | |
for dir in downloaded-artifacts/*; do | |
echo "Listing contents of $dir" | |
ls -la "$dir" | |
done | |
- name: Print environment variables | |
run: | | |
echo "Listing all environment variables:" | |
printenv | |
- name: Create Release | |
uses: ncipollo/[email protected] | |
with: | |
artifacts: "downloaded-artifacts/*/*.zip" | |
token: ${{ secrets.GITHUB_TOKEN }} | |
tag: ${{ github.ref }} | |
owner: altunenes | |
repo: rusty_art |