diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..4a114c5 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,1092 @@ +name: Release Binaries and Shaders + +on: + push: + tags: + - 'v*' + +permissions: write-all + +jobs: + build: + runs-on: ${{ matrix.os }} + strategy: + matrix: + include: + - os: ubuntu-latest + target: x86_64-unknown-linux-gnu + bin: enigma + ext: "" + - os: windows-latest + target: x86_64-pc-windows-gnu + bin: enigma + ext: ".exe" + - os: macos-latest + target: x86_64-apple-darwin + bin: enigma + ext: "" + - os: ubuntu-latest + target: x86_64-unknown-linux-gnu + bin: rainbow + ext: "" + - os: windows-latest + target: x86_64-pc-windows-gnu + bin: rainbow + ext: ".exe" + - os: macos-latest + target: x86_64-apple-darwin + bin: rainbow + ext: "" + - os: ubuntu-latest + target: x86_64-unknown-linux-gnu + bin: footsteps + ext: "" + - os: windows-latest + target: x86_64-pc-windows-gnu + bin: footsteps + ext: ".exe" + - os: macos-latest + target: x86_64-apple-darwin + bin: footsteps + ext: "" + - os: ubuntu-latest + target: x86_64-unknown-linux-gnu + bin: pixely + ext: "" + - os: windows-latest + target: x86_64-pc-windows-gnu + bin: pixely + ext: ".exe" + - os: macos-latest + target: x86_64-apple-darwin + bin: pixely + ext: "" + - os: ubuntu-latest + target: x86_64-unknown-linux-gnu + bin: blobs + ext: "" + - os: windows-latest + target: x86_64-pc-windows-gnu + bin: blobs + ext: ".exe" + - os: macos-latest + target: x86_64-apple-darwin + bin: blobs + ext: "" + - os: ubuntu-latest + target: x86_64-unknown-linux-gnu + bin: fibonacci + ext: "" + - os: windows-latest + target: x86_64-pc-windows-gnu + bin: fibonacci + ext: ".exe" + - os: macos-latest + target: x86_64-apple-darwin + bin: fibonacci + ext: "" + - os: ubuntu-latest + target: x86_64-unknown-linux-gnu + bin: cliff + ext: "" + - os: windows-latest + target: x86_64-pc-windows-gnu + bin: cliff + ext: ".exe" + - os: macos-latest + target: x86_64-apple-darwin + bin: cliff + ext: "" + - os: ubuntu-latest + target: x86_64-unknown-linux-gnu + bin: triangles + ext: "" + - os: windows-latest + target: x86_64-pc-windows-gnu + bin: triangles + ext: ".exe" + - os: macos-latest + target: x86_64-apple-darwin + bin: triangles + ext: "" + - os: ubuntu-latest + target: x86_64-unknown-linux-gnu + bin: shapes + ext: "" + - os: windows-latest + target: x86_64-pc-windows-gnu + bin: shapes + ext: ".exe" + - os: macos-latest + target: x86_64-apple-darwin + bin: shapes + ext: "" + - os: ubuntu-latest + target: x86_64-unknown-linux-gnu + bin: peace + ext: "" + - os: windows-latest + target: x86_64-pc-windows-gnu + bin: peace + ext: ".exe" + - os: macos-latest + target: x86_64-apple-darwin + bin: peace + ext: "" + - os: ubuntu-latest + target: x86_64-unknown-linux-gnu + bin: plumes + ext: "" + - os: windows-latest + target: x86_64-pc-windows-gnu + bin: plumes + ext: ".exe" + - os: macos-latest + target: x86_64-apple-darwin + bin: plumes + ext: "" + - os: ubuntu-latest + target: x86_64-unknown-linux-gnu + bin: attractors + ext: "" + - os: windows-latest + target: x86_64-pc-windows-gnu + bin: attractors + ext: ".exe" + - os: macos-latest + target: x86_64-apple-darwin + bin: attractors + ext: "" + - os: ubuntu-latest + target: x86_64-unknown-linux-gnu + bin: waves + ext: "" + - os: windows-latest + target: x86_64-pc-windows-gnu + bin: waves + ext: ".exe" + - os: macos-latest + target: x86_64-apple-darwin + bin: waves + ext: "" + - os: ubuntu-latest + target: x86_64-unknown-linux-gnu + bin: waves2 + ext: "" + - os: windows-latest + target: x86_64-pc-windows-gnu + bin: waves2 + ext: ".exe" + - os: macos-latest + target: x86_64-apple-darwin + bin: waves2 + ext: "" + - os: ubuntu-latest + target: x86_64-unknown-linux-gnu + bin: sine + ext: "" + - os: windows-latest + target: x86_64-pc-windows-gnu + bin: sine + ext: ".exe" + - os: macos-latest + target: x86_64-apple-darwin + bin: sine + ext: "" + - os: ubuntu-latest + target: x86_64-unknown-linux-gnu + bin: mona + ext: "" + - os: windows-latest + target: x86_64-pc-windows-gnu + bin: mona + ext: ".exe" + - os: macos-latest + target: x86_64-apple-darwin + bin: mona + ext: "" + - os: ubuntu-latest + target: x86_64-unknown-linux-gnu + bin: cafe_wall + ext: "" + - os: windows-latest + target: x86_64-pc-windows-gnu + bin: cafe_wall + ext: ".exe" + - os: macos-latest + target: x86_64-apple-darwin + bin: cafe_wall + ext: "" + - os: ubuntu-latest + target: x86_64-unknown-linux-gnu + bin: munker + ext: "" + - os: windows-latest + target: x86_64-pc-windows-gnu + bin: munker + ext: ".exe" + - os: macos-latest + target: x86_64-apple-darwin + bin: munker + ext: "" + - os: ubuntu-latest + target: x86_64-unknown-linux-gnu + bin: glow + ext: "" + - os: windows-latest + target: x86_64-pc-windows-gnu + bin: glow + ext: ".exe" + - os: macos-latest + target: x86_64-apple-darwin + bin: glow + ext: "" + - os: ubuntu-latest + target: x86_64-unknown-linux-gnu + bin: pdiamond + ext: "" + - os: windows-latest + target: x86_64-pc-windows-gnu + bin: pdiamond + ext: ".exe" + - os: macos-latest + target: x86_64-apple-darwin + bin: pdiamond + ext: "" + - os: ubuntu-latest + target: x86_64-unknown-linux-gnu + bin: lilac + ext: "" + - os: windows-latest + target: x86_64-pc-windows-gnu + bin: lilac + ext: ".exe" + - os: macos-latest + target: x86_64-apple-darwin + bin: lilac + ext: "" + - os: ubuntu-latest + target: x86_64-unknown-linux-gnu + bin: fourier + ext: "" + - os: windows-latest + target: x86_64-pc-windows-gnu + bin: fourier + ext: ".exe" + - os: macos-latest + target: x86_64-apple-darwin + bin: fourier + ext: "" + - os: ubuntu-latest + target: x86_64-unknown-linux-gnu + bin: peace2 + ext: "" + - os: windows-latest + target: x86_64-pc-windows-gnu + bin: peace2 + ext: ".exe" + - os: macos-latest + target: x86_64-apple-darwin + bin: peace2 + ext: "" + - os: ubuntu-latest + target: x86_64-unknown-linux-gnu + bin: nblur + ext: "" + - os: windows-latest + target: x86_64-pc-windows-gnu + bin: nblur + ext: ".exe" + - os: macos-latest + target: x86_64-apple-darwin + bin: nblur + ext: "" + - os: ubuntu-latest + target: x86_64-unknown-linux-gnu + bin: vortexmona + ext: "" + - os: windows-latest + target: x86_64-pc-windows-gnu + bin: vortexmona + ext: ".exe" + - os: macos-latest + target: x86_64-apple-darwin + bin: vortexmona + ext: "" + - os: ubuntu-latest + target: x86_64-unknown-linux-gnu + bin: pixelrain + ext: "" + - os: windows-latest + target: x86_64-pc-windows-gnu + bin: pixelrain + ext: ".exe" + - os: macos-latest + target: x86_64-apple-darwin + bin: pixelrain + ext: "" + - os: ubuntu-latest + target: x86_64-unknown-linux-gnu + bin: tiles + ext: "" + - os: windows-latest + target: x86_64-pc-windows-gnu + bin: tiles + ext: ".exe" + - os: macos-latest + target: x86_64-apple-darwin + bin: tiles + ext: "" + - os: ubuntu-latest + target: x86_64-unknown-linux-gnu + bin: pina + ext: "" + - os: windows-latest + target: x86_64-pc-windows-gnu + bin: pina + ext: ".exe" + - os: macos-latest + target: x86_64-apple-darwin + bin: pina + ext: "" + - os: ubuntu-latest + target: x86_64-unknown-linux-gnu + bin: hole + ext: "" + - os: windows-latest + target: x86_64-pc-windows-gnu + bin: hole + ext: ".exe" + - os: macos-latest + target: x86_64-apple-darwin + bin: hole + ext: "" + - os: ubuntu-latest + target: x86_64-unknown-linux-gnu + bin: pare + ext: "" + - os: windows-latest + target: x86_64-pc-windows-gnu + bin: pare + ext: ".exe" + - os: macos-latest + target: x86_64-apple-darwin + bin: pare + ext: "" + - os: ubuntu-latest + target: x86_64-unknown-linux-gnu + bin: neuralnet + ext: "" + - os: windows-latest + target: x86_64-pc-windows-gnu + bin: neuralnet + ext: ".exe" + - os: macos-latest + target: x86_64-apple-darwin + bin: neuralnet + ext: "" + - os: ubuntu-latest + target: x86_64-unknown-linux-gnu + bin: peace3 + ext: "" + - os: windows-latest + target: x86_64-pc-windows-gnu + bin: peace3 + ext: ".exe" + - os: macos-latest + target: x86_64-apple-darwin + bin: peace3 + ext: "" + - os: ubuntu-latest + target: x86_64-unknown-linux-gnu + bin: bhole + ext: "" + - os: windows-latest + target: x86_64-pc-windows-gnu + bin: bhole + ext: ".exe" + - os: macos-latest + target: x86_64-apple-darwin + bin: bhole + ext: "" + - os: ubuntu-latest + target: x86_64-unknown-linux-gnu + bin: oscillation + ext: "" + - os: windows-latest + target: x86_64-pc-windows-gnu + bin: oscillation + ext: ".exe" + - os: macos-latest + target: x86_64-apple-darwin + bin: oscillation + ext: "" + - os: ubuntu-latest + target: x86_64-unknown-linux-gnu + bin: gabor + ext: "" + - os: windows-latest + target: x86_64-pc-windows-gnu + bin: gabor + ext: ".exe" + - os: macos-latest + target: x86_64-apple-darwin + bin: gabor + ext: "" + - os: ubuntu-latest + target: x86_64-unknown-linux-gnu + bin: chladni + ext: "" + - os: windows-latest + target: x86_64-pc-windows-gnu + bin: chladni + ext: ".exe" + - os: macos-latest + target: x86_64-apple-darwin + bin: chladni + ext: "" + - os: ubuntu-latest + target: x86_64-unknown-linux-gnu + bin: hilbert + ext: "" + - os: windows-latest + target: x86_64-pc-windows-gnu + bin: hilbert + ext: ".exe" + - os: macos-latest + target: x86_64-apple-darwin + bin: hilbert + ext: "" + - os: ubuntu-latest + target: x86_64-unknown-linux-gnu + bin: hilbertimg + ext: "" + - os: windows-latest + target: x86_64-pc-windows-gnu + bin: hilbertimg + ext: ".exe" + - os: macos-latest + target: x86_64-apple-darwin + bin: hilbertimg + ext: "" + - os: ubuntu-latest + target: x86_64-unknown-linux-gnu + bin: snowflake + ext: "" + - os: windows-latest + target: x86_64-pc-windows-gnu + bin: snowflake + ext: ".exe" + - os: macos-latest + target: x86_64-apple-darwin + bin: snowflake + ext: "" + - os: ubuntu-latest + target: x86_64-unknown-linux-gnu + bin: mandelbrot + ext: "" + - os: windows-latest + target: x86_64-pc-windows-gnu + bin: mandelbrot + ext: ".exe" + - os: macos-latest + target: x86_64-apple-darwin + bin: mandelbrot + ext: "" + - os: ubuntu-latest + target: x86_64-unknown-linux-gnu + bin: leviant + ext: "" + - os: windows-latest + target: x86_64-pc-windows-gnu + bin: leviant + ext: ".exe" + - os: macos-latest + target: x86_64-apple-darwin + bin: leviant + ext: "" + - os: ubuntu-latest + target: x86_64-unknown-linux-gnu + bin: swirl + ext: "" + - os: windows-latest + target: x86_64-pc-windows-gnu + bin: swirl + ext: ".exe" + - os: macos-latest + target: x86_64-apple-darwin + bin: swirl + ext: "" + - os: ubuntu-latest + target: x86_64-unknown-linux-gnu + bin: spiralimg + ext: "" + - os: windows-latest + target: x86_64-pc-windows-gnu + bin: spiralimg + ext: ".exe" + - os: macos-latest + target: x86_64-apple-darwin + bin: spiralimg + ext: "" + - os: ubuntu-latest + target: x86_64-unknown-linux-gnu + bin: eyes + ext: "" + - os: windows-latest + target: x86_64-pc-windows-gnu + bin: eyes + ext: ".exe" + - os: macos-latest + target: x86_64-apple-darwin + bin: eyes + ext: "" + - os: ubuntu-latest + target: x86_64-unknown-linux-gnu + bin: imgblob + ext: "" + - os: windows-latest + target: x86_64-pc-windows-gnu + bin: imgblob + ext: ".exe" + - os: macos-latest + target: x86_64-apple-darwin + bin: imgblob + ext: "" + - os: ubuntu-latest + target: x86_64-unknown-linux-gnu + bin: scramble + ext: "" + - os: windows-latest + target: x86_64-pc-windows-gnu + bin: scramble + ext: ".exe" + - os: macos-latest + target: x86_64-apple-darwin + bin: scramble + ext: "" + - os: ubuntu-latest + target: x86_64-unknown-linux-gnu + bin: pixelate + ext: "" + - os: windows-latest + target: x86_64-pc-windows-gnu + bin: pixelate + ext: ".exe" + - os: macos-latest + target: x86_64-apple-darwin + bin: pixelate + ext: "" + - os: ubuntu-latest + target: x86_64-unknown-linux-gnu + bin: rainbowimage + ext: "" + - os: windows-latest + target: x86_64-pc-windows-gnu + bin: rainbowimage + ext: ".exe" + - os: macos-latest + target: x86_64-apple-darwin + bin: rainbowimage + ext: "" + - os: ubuntu-latest + target: x86_64-unknown-linux-gnu + bin: imfft + ext: "" + - os: windows-latest + target: x86_64-pc-windows-gnu + bin: imfft + ext: ".exe" + - os: macos-latest + target: x86_64-apple-darwin + bin: imfft + ext: "" + - os: ubuntu-latest + target: x86_64-unknown-linux-gnu + bin: gaborill + ext: "" + - os: windows-latest + target: x86_64-pc-windows-gnu + bin: gaborill + ext: ".exe" + - os: macos-latest + target: x86_64-apple-darwin + bin: gaborill + ext: "" + - os: ubuntu-latest + target: x86_64-unknown-linux-gnu + bin: imgabor + ext: "" + - os: windows-latest + target: x86_64-pc-windows-gnu + bin: imgabor + ext: ".exe" + - os: macos-latest + target: x86_64-apple-darwin + bin: imgabor + ext: "" + - os: ubuntu-latest + target: x86_64-unknown-linux-gnu + bin: munkerclock + ext: "" + - os: windows-latest + target: x86_64-pc-windows-gnu + bin: munkerclock + ext: ".exe" + - os: macos-latest + target: x86_64-apple-darwin + bin: munkerclock + ext: "" + - os: ubuntu-latest + target: x86_64-unknown-linux-gnu + bin: voronoi + ext: "" + - os: windows-latest + target: x86_64-pc-windows-gnu + bin: voronoi + ext: ".exe" + - os: macos-latest + target: x86_64-apple-darwin + bin: voronoi + ext: "" + - os: ubuntu-latest + target: x86_64-unknown-linux-gnu + bin: lorenz + ext: "" + - os: windows-latest + target: x86_64-pc-windows-gnu + bin: lorenz + ext: ".exe" + - os: macos-latest + target: x86_64-apple-darwin + bin: lorenz + ext: "" + - os: ubuntu-latest + target: x86_64-unknown-linux-gnu + bin: kaniza + ext: "" + - os: windows-latest + target: x86_64-pc-windows-gnu + bin: kaniza + ext: ".exe" + - os: macos-latest + target: x86_64-apple-darwin + bin: kaniza + ext: "" + - os: ubuntu-latest + target: x86_64-unknown-linux-gnu + bin: ulam + ext: "" + - os: windows-latest + target: x86_64-pc-windows-gnu + bin: ulam + ext: ".exe" + - os: macos-latest + target: x86_64-apple-darwin + bin: ulam + ext: "" + - os: ubuntu-latest + target: x86_64-unknown-linux-gnu + bin: dfft + ext: "" + - os: windows-latest + target: x86_64-pc-windows-gnu + bin: dfft + ext: ".exe" + - os: macos-latest + target: x86_64-apple-darwin + bin: dfft + ext: "" + - os: ubuntu-latest + target: x86_64-unknown-linux-gnu + bin: butter2d + ext: "" + - os: windows-latest + target: x86_64-pc-windows-gnu + bin: butter2d + ext: ".exe" + - os: macos-latest + target: x86_64-apple-darwin + bin: butter2d + ext: "" + - os: ubuntu-latest + target: x86_64-unknown-linux-gnu + bin: gaborwgpu + ext: "" + - os: windows-latest + target: x86_64-pc-windows-gnu + bin: gaborwgpu + ext: ".exe" + - os: macos-latest + target: x86_64-apple-darwin + bin: gaborwgpu + ext: "" + - os: ubuntu-latest + target: x86_64-unknown-linux-gnu + bin: galaxy + ext: "" + - os: windows-latest + target: x86_64-pc-windows-gnu + bin: galaxy + ext: ".exe" + - os: macos-latest + target: x86_64-apple-darwin + bin: galaxy + ext: "" + - os: ubuntu-latest + target: x86_64-unknown-linux-gnu + bin: mandelbrotgpu + ext: "" + - os: windows-latest + target: x86_64-pc-windows-gnu + bin: mandelbrotgpu + ext: ".exe" + - os: macos-latest + target: x86_64-apple-darwin + bin: mandelbrotgpu + ext: "" + - os: ubuntu-latest + target: x86_64-unknown-linux-gnu + bin: chladniwgpu + ext: "" + - os: windows-latest + target: x86_64-pc-windows-gnu + bin: chladniwgpu + ext: ".exe" + - os: macos-latest + target: x86_64-apple-darwin + bin: chladniwgpu + ext: "" + - os: ubuntu-latest + target: x86_64-unknown-linux-gnu + bin: snowflakewgpu + ext: "" + - os: windows-latest + target: x86_64-pc-windows-gnu + bin: snowflakewgpu + ext: ".exe" + - os: macos-latest + target: x86_64-apple-darwin + bin: snowflakewgpu + ext: "" + - os: ubuntu-latest + target: x86_64-unknown-linux-gnu + bin: spiralimgwgpu + ext: "" + - os: windows-latest + target: x86_64-pc-windows-gnu + bin: spiralimgwgpu + ext: ".exe" + - os: macos-latest + target: x86_64-apple-darwin + bin: spiralimgwgpu + ext: "" + - os: ubuntu-latest + target: x86_64-unknown-linux-gnu + bin: neuralnetwgpu + ext: "" + - os: windows-latest + target: x86_64-pc-windows-gnu + bin: neuralnetwgpu + ext: ".exe" + - os: macos-latest + target: x86_64-apple-darwin + bin: neuralnetwgpu + ext: "" + - os: ubuntu-latest + target: x86_64-unknown-linux-gnu + bin: imlenswgpu + ext: "" + - os: windows-latest + target: x86_64-pc-windows-gnu + bin: imlenswgpu + ext: ".exe" + - os: macos-latest + target: x86_64-apple-darwin + bin: imlenswgpu + ext: "" + - os: ubuntu-latest + target: x86_64-unknown-linux-gnu + bin: fbmflowgpu + ext: "" + - os: windows-latest + target: x86_64-pc-windows-gnu + bin: fbmflowgpu + ext: ".exe" + - os: macos-latest + target: x86_64-apple-darwin + bin: fbmflowgpu + ext: "" + - os: ubuntu-latest + target: x86_64-unknown-linux-gnu + bin: lovewgpu + ext: "" + - os: windows-latest + target: x86_64-pc-windows-gnu + bin: lovewgpu + ext: ".exe" + - os: macos-latest + target: x86_64-apple-darwin + bin: lovewgpu + ext: "" + - os: ubuntu-latest + target: x86_64-unknown-linux-gnu + bin: microscope + ext: "" + - os: windows-latest + target: x86_64-pc-windows-gnu + bin: microscope + ext: ".exe" + - os: macos-latest + target: x86_64-apple-darwin + bin: microscope + ext: "" + - os: ubuntu-latest + target: x86_64-unknown-linux-gnu + bin: neurons + ext: "" + - os: windows-latest + target: x86_64-pc-windows-gnu + bin: neurons + ext: ".exe" + - os: macos-latest + target: x86_64-apple-darwin + bin: neurons + ext: "" + - os: ubuntu-latest + target: x86_64-unknown-linux-gnu + bin: asahi + ext: "" + - os: windows-latest + target: x86_64-pc-windows-gnu + bin: asahi + ext: ".exe" + - os: macos-latest + target: x86_64-apple-darwin + bin: asahi + ext: "" + - os: ubuntu-latest + target: x86_64-unknown-linux-gnu + bin: voronoiwgpu + ext: "" + - os: windows-latest + target: x86_64-pc-windows-gnu + bin: voronoiwgpu + ext: ".exe" + - os: macos-latest + target: x86_64-apple-darwin + bin: voronoiwgpu + ext: "" + - os: ubuntu-latest + target: x86_64-unknown-linux-gnu + bin: voronoiwgpu2 + ext: "" + - os: windows-latest + target: x86_64-pc-windows-gnu + bin: voronoiwgpu2 + ext: ".exe" + - os: macos-latest + target: x86_64-apple-darwin + bin: voronoiwgpu2 + ext: "" + - os: ubuntu-latest + target: x86_64-unknown-linux-gnu + bin: fluid + ext: "" + - os: windows-latest + target: x86_64-pc-windows-gnu + bin: fluid + ext: ".exe" + - os: macos-latest + target: x86_64-apple-darwin + bin: fluid + ext: "" + - os: ubuntu-latest + target: x86_64-unknown-linux-gnu + bin: asahi2 + ext: "" + - os: windows-latest + target: x86_64-pc-windows-gnu + bin: asahi2 + ext: ".exe" + - os: macos-latest + target: x86_64-apple-darwin + bin: asahi2 + ext: "" + - os: ubuntu-latest + target: x86_64-unknown-linux-gnu + bin: sinh + ext: "" + - os: windows-latest + target: x86_64-pc-windows-gnu + bin: sinh + ext: ".exe" + - os: macos-latest + target: x86_64-apple-darwin + bin: sinh + ext: "" + - os: ubuntu-latest + target: x86_64-unknown-linux-gnu + bin: tree + ext: "" + - os: windows-latest + target: x86_64-pc-windows-gnu + bin: tree + ext: ".exe" + - os: macos-latest + target: x86_64-apple-darwin + bin: tree + ext: "" + - os: ubuntu-latest + target: x86_64-unknown-linux-gnu + bin: expmandelbrotgpu + ext: "" + - os: windows-latest + target: x86_64-pc-windows-gnu + bin: expmandelbrotgpu + ext: ".exe" + - os: macos-latest + target: x86_64-apple-darwin + bin: expmandelbrotgpu + ext: "" + - os: ubuntu-latest + target: x86_64-unknown-linux-gnu + bin: pupils + ext: "" + - os: windows-latest + target: x86_64-pc-windows-gnu + bin: pupils + ext: ".exe" + - os: macos-latest + target: x86_64-apple-darwin + bin: pupils + ext: "" + - os: ubuntu-latest + target: x86_64-unknown-linux-gnu + bin: pixelflow + ext: "" + - os: windows-latest + target: x86_64-pc-windows-gnu + bin: pixelflow + ext: ".exe" + - os: macos-latest + target: x86_64-apple-darwin + bin: pixelflow + ext: "" + - os: ubuntu-latest + target: x86_64-unknown-linux-gnu + bin: gaborlbrot + ext: "" + - os: windows-latest + target: x86_64-pc-windows-gnu + bin: gaborlbrot + ext: ".exe" + - os: macos-latest + target: x86_64-apple-darwin + bin: gaborlbrot + ext: "" + - os: ubuntu-latest + target: x86_64-unknown-linux-gnu + bin: darkclouds + ext: "" + - os: windows-latest + target: x86_64-pc-windows-gnu + bin: darkclouds + ext: ".exe" + - os: macos-latest + target: x86_64-apple-darwin + bin: darkclouds + ext: "" + - os: ubuntu-latest + target: x86_64-unknown-linux-gnu + bin: tunnel + ext: "" + - os: windows-latest + target: x86_64-pc-windows-gnu + bin: tunnel + ext: ".exe" + - os: macos-latest + target: x86_64-apple-darwin + bin: tunnel + ext: "" + - os: ubuntu-latest + target: x86_64-unknown-linux-gnu + bin: neurons2 + ext: "" + - os: windows-latest + target: x86_64-pc-windows-gnu + bin: neurons2 + ext: ".exe" + - os: macos-latest + target: x86_64-apple-darwin + bin: neurons2 + ext: "" + - os: ubuntu-latest + target: x86_64-unknown-linux-gnu + bin: nebula + ext: "" + - os: windows-latest + target: x86_64-pc-windows-gnu + bin: nebula + ext: ".exe" + - os: macos-latest + target: x86_64-apple-darwin + bin: nebula + 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: + - uses: actions/download-artifact@v2 + with: + path: downloaded-artifacts + + - name: List files in the directory + run: | + echo "Listing downloaded artifacts:" + ls -la downloaded-artifacts + shell: bash + + - name: Create Release + uses: ncipollo/release-action@v1 + with: + artifacts: "downloaded-artifacts/*.zip" + token: ${{ secrets.GITHUB_TOKEN }} + tag: ${{ github.ref }} \ No newline at end of file