|
| 1 | +name: CI for Ubuntu (TEST) |
| 2 | + |
| 3 | +on: |
| 4 | + # push: #Uncomment this line to run the workflow on push |
| 5 | + workflow_dispatch: #This line allows you to run the workflow manually from the GitHub Actions page |
| 6 | + #inputs: |
| 7 | + # runtime: |
| 8 | + # description: 'Target runtime' |
| 9 | + # default: 2024.1100.0.658 |
| 10 | + # required: false |
| 11 | + workflow_call: #This line allows you to run the workflow from another workflow |
| 12 | + |
| 13 | +jobs: |
| 14 | + build: |
| 15 | + runs-on: ubuntu-latest |
| 16 | + steps: |
| 17 | + # Check out the repository with the GameMaker project |
| 18 | + - uses: actions/checkout@v4 |
| 19 | + with: |
| 20 | + lfs: true |
| 21 | + # This step finds the yyp file in the repository and saves the path to an output |
| 22 | + - id: find_yyp |
| 23 | + name: Find the yyp file |
| 24 | + run: | |
| 25 | + yyp=$(find ${{ github.workspace }} -name "*.yyp") |
| 26 | + echo "YYP file found at: $yyp" |
| 27 | + echo "yyp-path=$yyp" >> $GITHUB_OUTPUT |
| 28 | + - name: Set up ffmpeg # This step may be removed when https://github.com/YoYoGames/GameMaker-Bugs/issues/4977 is fixed |
| 29 | + uses: FedericoCarboni/setup-ffmpeg@v3 |
| 30 | + with: |
| 31 | + ffmpeg-version: '6.1.0' |
| 32 | + # This step sets up the GameMaker build CLI tool Igor https://github.com/bscotch/igor-setup |
| 33 | + - name: use Igor Setup |
| 34 | + uses: bscotch/igor-setup@develop |
| 35 | + id: igor |
| 36 | + with: |
| 37 | + target-yyp: ${{ steps.find_yyp.outputs.yyp-path }} |
| 38 | + access-key: ${{ secrets.ACCESS_KEY }} # To generate your Access Key, check out the Access Key section of the GameMaker Manual's Building via Command Line page: https://manual.gamemaker.io/monthly/en/#t=Settings%2FBuilding_via_Command_Line.htm |
| 39 | + cache: true |
| 40 | + runtime-version: ${{ inputs.runtime }} |
| 41 | + modules: linux |
| 42 | + # This step uses Igor to build the GameMaker project https://github.com/bscotch/igor-build |
| 43 | + - name: use Igor build |
| 44 | + uses: bscotch/igor-build@v1 |
| 45 | + id: build |
| 46 | + with: |
| 47 | + yyp-path: ${{ steps.find_yyp.outputs.yyp-path }} |
| 48 | + user-dir: ${{ steps.igor.outputs.user-dir }} |
| 49 | + platform: linux |
| 50 | + # This step uploads the build to the artifacts, so you can download it from the GitHub Actions page or use it in another workflow |
| 51 | + - name: upload-build |
| 52 | + uses: actions/upload-artifact@v4 |
| 53 | + with: |
| 54 | + name: igor-build-${{ runner.os }} |
| 55 | + path: ${{ steps.build.outputs.out-dir }} |
| 56 | + retention-days: 1 # Longer retention days can incur additional charges. See https://docs.github.com/en/actions/using-workflows/storing-workflow-data-as-artifacts |
| 57 | + |
0 commit comments