ebiten/.github/workflows/steam.yml
2021-08-27 03:21:26 +09:00

39 lines
2.1 KiB
YAML

name: Steam
on: [push, pull_request]
jobs:
test:
name: Test with Steam Runtime
runs-on: ubuntu-latest
env:
DISPLAY: ':99.0'
STEAM_RUNTIME_VERSION: '0.20210721.1'
GO_VERSION: '1.17'
defaults:
run:
shell: bash
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Docker build (386)
run: |
curl -L --output com.valvesoftware.SteamRuntime.Sdk-i386-scout-sysroot.Dockerfile https://repo.steampowered.com/steamrt-images-scout/snapshots/${STEAM_RUNTIME_VERSION}/com.valvesoftware.SteamRuntime.Sdk-i386-scout-sysroot.Dockerfile
curl -L --output com.valvesoftware.SteamRuntime.Sdk-i386-scout-sysroot.tar.gz https://repo.steampowered.com/steamrt-images-scout/snapshots/${STEAM_RUNTIME_VERSION}/com.valvesoftware.SteamRuntime.Sdk-i386-scout-sysroot.tar.gz
docker build -f com.valvesoftware.SteamRuntime.Sdk-i386-scout-sysroot.Dockerfile -t steamrt_scout_i386:latest .
- name: Docker build (amd64)
run: |
curl -L --output com.valvesoftware.SteamRuntime.Sdk-amd64,i386-scout-sysroot.Dockerfile https://repo.steampowered.com/steamrt-images-scout/snapshots/${STEAM_RUNTIME_VERSION}/com.valvesoftware.SteamRuntime.Sdk-amd64,i386-scout-sysroot.Dockerfile
curl -L --output com.valvesoftware.SteamRuntime.Sdk-amd64,i386-scout-sysroot.tar.gz https://repo.steampowered.com/steamrt-images-scout/snapshots/${STEAM_RUNTIME_VERSION}/com.valvesoftware.SteamRuntime.Sdk-amd64,i386-scout-sysroot.tar.gz
docker build -f com.valvesoftware.SteamRuntime.Sdk-amd64,i386-scout-sysroot.Dockerfile -t steamrt_scout_amd64:latest .
- name: Docker run (386)
run: |
docker run --rm --workdir=/work --volume $(pwd):/work --env GO_FILENAME=go${GO_VERSION}.linux-386.tar.gz steamrt_scout_i386:latest /bin/sh .github/workflows/steam.sh
- name: Docker run (amd64)
run: |
docker run --rm --workdir=/work --volume $(pwd):/work --env GO_FILENAME=go${GO_VERSION}.linux-amd64.tar.gz steamrt_scout_amd64:latest /bin/sh .github/workflows/steam.sh