1
0
Fork 0
mirror of https://github.com/ninjamuffin99/Funkin.git synced 2025-11-22 13:13:47 +00:00

Merge pull request #174 from FunkinCrew/rewrite/fix-ci-builds-pt-i

fix ci builds in rewrite branch
This commit is contained in:
Cameron Taylor 2023-10-06 20:30:44 -04:00 committed by GitHub
commit dd17e04051
3 changed files with 34 additions and 17 deletions

View file

@ -3,18 +3,31 @@ description: "sets up haxe shit, using HMM!"
runs: runs:
using: "composite" using: "composite"
steps: steps:
- uses: krdlab/setup-haxe@v1.5.1 - uses: krdlab/setup-haxe@v1.5.1
with: with:
haxe-version: 4.3.1 haxe-version: 4.3.1
- name: Config haxelib - name: Config haxelib
run: | run: |
haxelib config haxelib config
shell: bash shell: bash
- name: Installing Haxe lol - name: Installing Haxe lol
run: | run: |
haxe -version haxe -version
haxelib git haxelib https://github.com/HaxeFoundation/haxelib.git development haxelib git haxelib https://github.com/HaxeFoundation/haxelib.git development
haxelib version haxelib version
haxelib --global install hmm haxelib --global install hmm
haxelib --global run hmm install --quiet shell: bash
shell: bash - name: dependency install cache
id: cache-hmm
uses: actions/cache@v3
with:
path: .haxelib
key: ${{ runner.os }}-hmm-${{ hashFiles('**/hmm.json') }}
restore-keys: |
${{ runner.os }}-hmm-
${{ runner.os }}-
- if: ${{ steps.cache-hmm.outputs.cache-hit != 'true' }}
name: hmm install
run: |
haxelib --global run hmm install
shell: bash

View file

@ -36,9 +36,9 @@ runs:
./butler -V ./butler -V
shell: bash shell: bash
- name: Upload game to itch.io - name: Upload game to itch.io
env: env:
BUTLER_API_KEY: ${{inputs.butler-key}} BUTLER_API_KEY: ${{inputs.butler-key}}
run: | run: |
./butler login ./butler login
./butler push ${{inputs.build-dir}} ninja-muffin24/funkin-secret:${{inputs.target}}-${GITHUB_REF##*/} ./butler push ${{inputs.build-dir}} ninja-muffin24/funkin-secret:${{inputs.target}}-${GITHUB_REF##*/}
shell: bash shell: bash

View file

@ -26,9 +26,11 @@ jobs:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
with: with:
submodules: 'recursive' submodules: 'recursive'
token: ${{ secrets.GH_RO_PAT }}
- uses: ./.github/actions/setup-haxeshit - uses: ./.github/actions/setup-haxeshit
- name: Build game - name: Build game
run: | run: |
sudo apt-get update
sudo apt-get install -y libx11-dev xorg-dev libgl-dev libxi-dev libxext-dev libasound2-dev libxinerama-dev libxrandr-dev libgl1-mesa-dev sudo apt-get install -y libx11-dev xorg-dev libgl-dev libxi-dev libxext-dev libasound2-dev libxinerama-dev libxrandr-dev libgl1-mesa-dev
haxelib run lime build html5 -release --times haxelib run lime build html5 -release --times
ls ls
@ -48,6 +50,7 @@ jobs:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
with: with:
submodules: 'recursive' submodules: 'recursive'
token: ${{ secrets.GH_RO_PAT }}
- uses: ./.github/actions/setup-haxeshit - uses: ./.github/actions/setup-haxeshit
- name: Build game - name: Build game
run: | run: |
@ -68,6 +71,7 @@ jobs:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
with: with:
submodules: 'recursive' submodules: 'recursive'
token: ${{ secrets.GH_RO_PAT }}
- uses: ./.github/actions/setup-haxeshit - uses: ./.github/actions/setup-haxeshit
- name: Run unit tests - name: Run unit tests
run: | run: |