1
0

steam.yml 1.2 KB

12345678910111213141516171819202122232425262728293031
  1. name: Steam
  2. on: [push, pull_request]
  3. jobs:
  4. test:
  5. name: Test with Steam Runtime
  6. runs-on: ubuntu-latest
  7. env:
  8. DISPLAY: ':99.0'
  9. defaults:
  10. run:
  11. shell: bash
  12. steps:
  13. - name: Checkout
  14. uses: actions/checkout@v4
  15. - name: Docker build (amd64)
  16. run: |
  17. 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
  18. 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
  19. docker build -f com.valvesoftware.SteamRuntime.Sdk-amd64,i386-sniper-sysroot.Dockerfile -t steamrt_sniper_amd64:latest .
  20. - name: Go version
  21. id: go
  22. run: |
  23. echo "version=$(curl --location https://go.dev/VERSION?m=text | head -n 1)" >> $GITHUB_OUTPUT
  24. - name: Docker run (amd64)
  25. run: |
  26. 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