2021-08-26 19:21:33 +02:00
|
|
|
name: Steam
|
2021-07-28 16:14:44 +02:00
|
|
|
|
2023-09-29 06:00:06 +02:00
|
|
|
on: [push, pull_request]
|
2021-07-28 16:14:44 +02:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
test:
|
|
|
|
name: Test with Steam Runtime
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
env:
|
|
|
|
DISPLAY: ':99.0'
|
|
|
|
defaults:
|
|
|
|
run:
|
|
|
|
shell: bash
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2023-09-08 16:27:09 +02:00
|
|
|
uses: actions/checkout@v3
|
2021-07-28 16:14:44 +02:00
|
|
|
|
2021-08-15 17:48:17 +02:00
|
|
|
- name: Docker build (amd64)
|
2021-07-28 16:14:44 +02:00
|
|
|
run: |
|
2023-04-19 15:56:53 +02:00
|
|
|
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 .
|
2021-07-28 16:14:44 +02:00
|
|
|
|
2022-08-17 19:00:57 +02:00
|
|
|
- name: Go version
|
|
|
|
id: go
|
|
|
|
run: |
|
2023-08-08 17:09:47 +02:00
|
|
|
echo "version=$(curl --location https://go.dev/VERSION?m=text | head -n 1)" >> $GITHUB_OUTPUT
|
2022-08-17 19:00:57 +02:00
|
|
|
|
2021-08-15 17:48:17 +02:00
|
|
|
- name: Docker run (amd64)
|
2021-07-28 16:14:44 +02:00
|
|
|
run: |
|
2023-04-19 15:56:53 +02:00
|
|
|
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
|