workflows - Update how docker is started to help with space available #1931
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |