mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2024-07-15 06:35:33 +00:00
ci: use our own hardware (#226)
* attempt selfhosted linux runner * try container option * run check_date job on own hardware too * prep container * importing actions before checkout doesn't work thanks github * dockering * attempt 2 * attempt 3 * typo * permission issues * try using safe.directory * github actions moment * container prep time! * container prep time!
This commit is contained in:
parent
95b43cce55
commit
818062605c
15
.github/workflows/build-shit.yml
vendored
15
.github/workflows/build-shit.yml
vendored
|
@ -5,11 +5,14 @@ on:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
check_date:
|
check_date:
|
||||||
runs-on: ubuntu-latest
|
runs-on: [self-hosted, linux]
|
||||||
|
container: ubuntu:latest
|
||||||
name: Check latest commit
|
name: Check latest commit
|
||||||
outputs:
|
outputs:
|
||||||
should_run: ${{ steps.should_run.outputs.should_run }}
|
should_run: ${{ steps.should_run.outputs.should_run }}
|
||||||
steps:
|
steps:
|
||||||
|
- name: ensure git cli is installed
|
||||||
|
run: apt update && apt install sudo git -y
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: print latest_commit
|
- name: print latest_commit
|
||||||
run: echo ${{ github.sha }}
|
run: echo ${{ github.sha }}
|
||||||
|
@ -21,8 +24,15 @@ jobs:
|
||||||
create-nightly-html5:
|
create-nightly-html5:
|
||||||
needs: check_date
|
needs: check_date
|
||||||
if: ${{ needs.check_date.outputs.should_run != 'false'}}
|
if: ${{ needs.check_date.outputs.should_run != 'false'}}
|
||||||
runs-on: ubuntu-latest
|
runs-on: [self-hosted, linux]
|
||||||
|
container: ubuntu:latest
|
||||||
steps:
|
steps:
|
||||||
|
- name: prepare container
|
||||||
|
run: |
|
||||||
|
apt update
|
||||||
|
apt install sudo git curl unzip -y
|
||||||
|
echo $GITHUB_WORKSPACE
|
||||||
|
git config --global --add safe.directory $GITHUB_WORKSPACE
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
submodules: 'recursive'
|
submodules: 'recursive'
|
||||||
|
@ -30,7 +40,6 @@ jobs:
|
||||||
- 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
|
||||||
|
|
Loading…
Reference in a new issue