Skip to content

Commit

Permalink
Make screenshots in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
jannik4 committed Aug 16, 2024
1 parent 97debf6 commit a10b76a
Show file tree
Hide file tree
Showing 32 changed files with 42 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,47 @@ env:
binary: primes

jobs:
# Make screenshots
release-screenshots:
runs-on: ubuntu-latest

steps:
- uses: olegtarasov/[email protected]
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
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/target
/screenshots
/.todo

/wasm/bevy_game.js
Expand Down
Binary file removed screenshots/primes_1080x1920_5600_-1.png
Binary file not shown.
Binary file removed screenshots/primes_1080x1920_5600_-2.png
Binary file not shown.
Binary file removed screenshots/primes_1080x1920_5600_-6.png
Binary file not shown.
Binary file removed screenshots/primes_1080x1920_5600_0.png
Binary file not shown.
Binary file removed screenshots/primes_1080x1920_5600_1.png
Binary file not shown.
Binary file removed screenshots/primes_1080x1920_5600_4.png
Binary file not shown.
Binary file removed screenshots/primes_1080x2340_5600_-1.png
Binary file not shown.
Binary file removed screenshots/primes_1080x2340_5600_-2.png
Binary file not shown.
Binary file removed screenshots/primes_1080x2340_5600_-6.png
Binary file not shown.
Binary file removed screenshots/primes_1080x2340_5600_0.png
Binary file not shown.
Binary file removed screenshots/primes_1080x2340_5600_1.png
Binary file not shown.
Binary file removed screenshots/primes_1080x2340_5600_4.png
Binary file not shown.
Binary file removed screenshots/primes_1920x1080_5600_-1.png
Binary file not shown.
Binary file removed screenshots/primes_1920x1080_5600_-2.png
Binary file not shown.
Binary file removed screenshots/primes_1920x1080_5600_-6.png
Binary file not shown.
Binary file removed screenshots/primes_1920x1080_5600_0.png
Binary file not shown.
Binary file removed screenshots/primes_1920x1080_5600_1.png
Binary file not shown.
Binary file removed screenshots/primes_1920x1080_5600_4.png
Binary file not shown.
Binary file removed screenshots/primes_3440x1440_5600_-1.png
Binary file not shown.
Binary file removed screenshots/primes_3440x1440_5600_-2.png
Binary file not shown.
Binary file removed screenshots/primes_3440x1440_5600_-6.png
Binary file not shown.
Binary file removed screenshots/primes_3440x1440_5600_0.png
Binary file not shown.
Binary file removed screenshots/primes_3440x1440_5600_1.png
Binary file not shown.
Binary file removed screenshots/primes_3440x1440_5600_4.png
Binary file not shown.
Binary file removed screenshots/primes_800x400_5600_-1.png
Binary file not shown.
Binary file removed screenshots/primes_800x400_5600_-2.png
Diff not rendered.
Binary file removed screenshots/primes_800x400_5600_-6.png
Diff not rendered.
Binary file removed screenshots/primes_800x400_5600_0.png
Diff not rendered.
Binary file removed screenshots/primes_800x400_5600_1.png
Diff not rendered.
Binary file removed screenshots/primes_800x400_5600_4.png
Diff not rendered.

0 comments on commit a10b76a

Please sign in to comment.