mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-27 04:08:53 +01:00
a9c272d137
See https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
32 lines
1.2 KiB
YAML
32 lines
1.2 KiB
YAML
name: Steam
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
test:
|
|
name: Test with Steam Runtime
|
|
runs-on: ubuntu-latest
|
|
env:
|
|
DISPLAY: ':99.0'
|
|
defaults:
|
|
run:
|
|
shell: bash
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Docker build (amd64)
|
|
run: |
|
|
curl --location --remote-name https://repo.steampowered.com/steamrt-images-sniper/snapshots/latest-container-runtime-public-beta/com.valvesoftware.SteamRuntime.Sdk-amd64,i386-sniper-sysroot.Dockerfile
|
|
curl --location --remote-name https://repo.steampowered.com/steamrt-images-sniper/snapshots/latest-container-runtime-public-beta/com.valvesoftware.SteamRuntime.Sdk-amd64,i386-sniper-sysroot.tar.gz
|
|
docker build -f com.valvesoftware.SteamRuntime.Sdk-amd64,i386-sniper-sysroot.Dockerfile -t steamrt_sniper_amd64:latest .
|
|
|
|
- name: Go version
|
|
id: go
|
|
run: |
|
|
echo "version=$(curl --location https://go.dev/VERSION?m=text)" >> $GITHUB_OUTPUT
|
|
|
|
- name: Docker run (amd64)
|
|
run: |
|
|
docker run --rm --workdir=/work --volume $(pwd):/work --env GO_FILENAME=${{ steps.go.outputs.version }}.linux-amd64.tar.gz steamrt_sniper_amd64:latest /bin/sh .github/workflows/steam.sh
|