diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index f81ff27..9b5d4ad 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -12,6 +12,47 @@ env: binary: primes jobs: + # Make screenshots + release-screenshots: + runs-on: ubuntu-latest + + steps: + - uses: olegtarasov/get-tag@v2.1.2 + id: get_version + - uses: actions/checkout@v4 + - uses: dtolnay/rust-toolchain@stable + with: + targets: x86_64-unknown-linux-gnu + - name: install dependencies + run: | + sudo apt-get update; sudo apt-get install pkg-config libx11-dev libasound2-dev libudev-dev libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0-dev + + - name: Build + env: + GAME_VERSION: ${{ steps.get_version.outputs.tag }} + run: | + cargo build --release --target x86_64-unknown-linux-gnu + + - name: Make screenshots + run: | + chmod +x ./make_screenshots.sh + ./make_screenshots.sh + shell: bash + + - name: Package as a zip + working-directory: ./screenshots + run: | + zip --recurse-paths ../screenshots.zip . + + - name: Upload binaries to release + uses: svenstaro/upload-release-action@v2 + with: + repo_token: ${{ secrets.GITHUB_TOKEN }} + file: screenshots.zip + asset_name: primes-screenshots.zip + tag: ${{ github.ref }} + overwrite: true + # Build for wasm release-wasm: runs-on: ubuntu-latest diff --git a/.gitignore b/.gitignore index a427f83..8efdfaf 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ /target +/screenshots /.todo /wasm/bevy_game.js diff --git a/screenshots/primes_1080x1920_5600_-1.png b/screenshots/primes_1080x1920_5600_-1.png deleted file mode 100644 index 633fbe2..0000000 Binary files a/screenshots/primes_1080x1920_5600_-1.png and /dev/null differ diff --git a/screenshots/primes_1080x1920_5600_-2.png b/screenshots/primes_1080x1920_5600_-2.png deleted file mode 100644 index 3d3566d..0000000 Binary files a/screenshots/primes_1080x1920_5600_-2.png and /dev/null differ diff --git a/screenshots/primes_1080x1920_5600_-6.png b/screenshots/primes_1080x1920_5600_-6.png deleted file mode 100644 index e079d4e..0000000 Binary files a/screenshots/primes_1080x1920_5600_-6.png and /dev/null differ diff --git a/screenshots/primes_1080x1920_5600_0.png b/screenshots/primes_1080x1920_5600_0.png deleted file mode 100644 index 44da659..0000000 Binary files a/screenshots/primes_1080x1920_5600_0.png and /dev/null differ diff --git a/screenshots/primes_1080x1920_5600_1.png b/screenshots/primes_1080x1920_5600_1.png deleted file mode 100644 index 0331398..0000000 Binary files a/screenshots/primes_1080x1920_5600_1.png and /dev/null differ diff --git a/screenshots/primes_1080x1920_5600_4.png b/screenshots/primes_1080x1920_5600_4.png deleted file mode 100644 index cde645f..0000000 Binary files a/screenshots/primes_1080x1920_5600_4.png and /dev/null differ diff --git a/screenshots/primes_1080x2340_5600_-1.png b/screenshots/primes_1080x2340_5600_-1.png deleted file mode 100644 index 05adeb9..0000000 Binary files a/screenshots/primes_1080x2340_5600_-1.png and /dev/null differ diff --git a/screenshots/primes_1080x2340_5600_-2.png b/screenshots/primes_1080x2340_5600_-2.png deleted file mode 100644 index 72b814d..0000000 Binary files a/screenshots/primes_1080x2340_5600_-2.png and /dev/null differ diff --git a/screenshots/primes_1080x2340_5600_-6.png b/screenshots/primes_1080x2340_5600_-6.png deleted file mode 100644 index 33bd4e7..0000000 Binary files a/screenshots/primes_1080x2340_5600_-6.png and /dev/null differ diff --git a/screenshots/primes_1080x2340_5600_0.png b/screenshots/primes_1080x2340_5600_0.png deleted file mode 100644 index 64019e0..0000000 Binary files a/screenshots/primes_1080x2340_5600_0.png and /dev/null differ diff --git a/screenshots/primes_1080x2340_5600_1.png b/screenshots/primes_1080x2340_5600_1.png deleted file mode 100644 index fdb8df2..0000000 Binary files a/screenshots/primes_1080x2340_5600_1.png and /dev/null differ diff --git a/screenshots/primes_1080x2340_5600_4.png b/screenshots/primes_1080x2340_5600_4.png deleted file mode 100644 index ed47116..0000000 Binary files a/screenshots/primes_1080x2340_5600_4.png and /dev/null differ diff --git a/screenshots/primes_1920x1080_5600_-1.png b/screenshots/primes_1920x1080_5600_-1.png deleted file mode 100644 index 3706cdb..0000000 Binary files a/screenshots/primes_1920x1080_5600_-1.png and /dev/null differ diff --git a/screenshots/primes_1920x1080_5600_-2.png b/screenshots/primes_1920x1080_5600_-2.png deleted file mode 100644 index 602cc7f..0000000 Binary files a/screenshots/primes_1920x1080_5600_-2.png and /dev/null differ diff --git a/screenshots/primes_1920x1080_5600_-6.png b/screenshots/primes_1920x1080_5600_-6.png deleted file mode 100644 index dc77ce3..0000000 Binary files a/screenshots/primes_1920x1080_5600_-6.png and /dev/null differ diff --git a/screenshots/primes_1920x1080_5600_0.png b/screenshots/primes_1920x1080_5600_0.png deleted file mode 100644 index cfbc105..0000000 Binary files a/screenshots/primes_1920x1080_5600_0.png and /dev/null differ diff --git a/screenshots/primes_1920x1080_5600_1.png b/screenshots/primes_1920x1080_5600_1.png deleted file mode 100644 index ed12f6c..0000000 Binary files a/screenshots/primes_1920x1080_5600_1.png and /dev/null differ diff --git a/screenshots/primes_1920x1080_5600_4.png b/screenshots/primes_1920x1080_5600_4.png deleted file mode 100644 index 9e6516b..0000000 Binary files a/screenshots/primes_1920x1080_5600_4.png and /dev/null differ diff --git a/screenshots/primes_3440x1440_5600_-1.png b/screenshots/primes_3440x1440_5600_-1.png deleted file mode 100644 index 995741c..0000000 Binary files a/screenshots/primes_3440x1440_5600_-1.png and /dev/null differ diff --git a/screenshots/primes_3440x1440_5600_-2.png b/screenshots/primes_3440x1440_5600_-2.png deleted file mode 100644 index 3a834e3..0000000 Binary files a/screenshots/primes_3440x1440_5600_-2.png and /dev/null differ diff --git a/screenshots/primes_3440x1440_5600_-6.png b/screenshots/primes_3440x1440_5600_-6.png deleted file mode 100644 index c339771..0000000 Binary files a/screenshots/primes_3440x1440_5600_-6.png and /dev/null differ diff --git a/screenshots/primes_3440x1440_5600_0.png b/screenshots/primes_3440x1440_5600_0.png deleted file mode 100644 index 70138d3..0000000 Binary files a/screenshots/primes_3440x1440_5600_0.png and /dev/null differ diff --git a/screenshots/primes_3440x1440_5600_1.png b/screenshots/primes_3440x1440_5600_1.png deleted file mode 100644 index 54069f7..0000000 Binary files a/screenshots/primes_3440x1440_5600_1.png and /dev/null differ diff --git a/screenshots/primes_3440x1440_5600_4.png b/screenshots/primes_3440x1440_5600_4.png deleted file mode 100644 index 6973ebb..0000000 Binary files a/screenshots/primes_3440x1440_5600_4.png and /dev/null differ diff --git a/screenshots/primes_800x400_5600_-1.png b/screenshots/primes_800x400_5600_-1.png deleted file mode 100644 index a4b2817..0000000 Binary files a/screenshots/primes_800x400_5600_-1.png and /dev/null differ diff --git a/screenshots/primes_800x400_5600_-2.png b/screenshots/primes_800x400_5600_-2.png deleted file mode 100644 index cd06bca..0000000 Binary files a/screenshots/primes_800x400_5600_-2.png and /dev/null differ diff --git a/screenshots/primes_800x400_5600_-6.png b/screenshots/primes_800x400_5600_-6.png deleted file mode 100644 index 66f78de..0000000 Binary files a/screenshots/primes_800x400_5600_-6.png and /dev/null differ diff --git a/screenshots/primes_800x400_5600_0.png b/screenshots/primes_800x400_5600_0.png deleted file mode 100644 index 222ba37..0000000 Binary files a/screenshots/primes_800x400_5600_0.png and /dev/null differ diff --git a/screenshots/primes_800x400_5600_1.png b/screenshots/primes_800x400_5600_1.png deleted file mode 100644 index 3dffca0..0000000 Binary files a/screenshots/primes_800x400_5600_1.png and /dev/null differ diff --git a/screenshots/primes_800x400_5600_4.png b/screenshots/primes_800x400_5600_4.png deleted file mode 100644 index b4fb1b2..0000000 Binary files a/screenshots/primes_800x400_5600_4.png and /dev/null differ