Skip to content

workflows - Update how docker is started to help with space available #1931

workflows - Update how docker is started to help with space available

workflows - Update how docker is started to help with space available #1931

Workflow file for this run

name: Build Engine
on:
pull_request:
paths:
- 'engines/**'
jobs:
findengine:
runs-on: ubuntu-latest
outputs:
engine: ${{ steps.findname.outputs.engine }}
container: ${{ steps.findname.outputs.container }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Find Engine Name
id: findname
uses: luxtorpeda-dev/action-build-get-engine-name@master
with:
token: ${{ secrets.GITHUB_TOKEN }}
build:
runs-on: ubuntu-latest
needs: findengine
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build & Package
uses: addnab/docker-run-action@v3
with:
image: ${{ needs.findengine.outputs.container }}
options: -v ${{ github.workspace }}:/packages
run: |
cd /packages
./common/start_build.sh ${{needs.findengine.outputs.engine}}
./common/package.sh ${{needs.findengine.outputs.engine}}
- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: dist
path: ./dist