mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2025-05-24 08:02:22 +00:00
fix(ci): checkout failures, feat(ci): mac builds
* fetch-depth=1 * switch to app tokens * docs? * docs! * actions / doesnt check out * mac attempt 1 * custom setup haxe action * trigger ci run thanks github * interesting * meow * use tags * homebrew fixing maybe * mymindishazel/actions-setup-haxe@vC.1.8 * automationgit pushgit pushgit push * rosetta all the way? * macos oopsy * mac cache && move ci to org --------- Co-authored-by: Eric <ericmyllyoja@gmail.com> Co-authored-by: Cameron Taylor <cameron.taylor.ninja@gmail.com>
This commit is contained in:
parent
969626c8f8
commit
583eb81de5
2
.github/actions/setup-haxeshit/action.yml
vendored
2
.github/actions/setup-haxeshit/action.yml
vendored
|
@ -3,7 +3,7 @@ description: "sets up haxe shit, using HMM!"
|
||||||
runs:
|
runs:
|
||||||
using: "composite"
|
using: "composite"
|
||||||
steps:
|
steps:
|
||||||
- uses: krdlab/setup-haxe@v1.5.1
|
- uses: funkincrew/ci-haxe@v2
|
||||||
with:
|
with:
|
||||||
haxe-version: 4.3.1
|
haxe-version: 4.3.1
|
||||||
- name: Config haxelib
|
- name: Config haxelib
|
||||||
|
|
89
.github/workflows/build-shit.yml
vendored
89
.github/workflows/build-shit.yml
vendored
|
@ -13,11 +13,18 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- name: ensure git cli is installed
|
- name: ensure git cli is installed
|
||||||
run: apt update && apt install sudo git -y
|
run: apt update && apt install sudo git -y
|
||||||
- uses: actions/checkout@v4
|
- name: get token from gh app
|
||||||
|
uses: actions/create-github-app-token@v1
|
||||||
|
id: app_token
|
||||||
|
with:
|
||||||
|
app-id: ${{ vars.APP_ID }}
|
||||||
|
private-key: ${{ secrets.APP_PEM }}
|
||||||
|
owner: ${{ github.repository_owner }}
|
||||||
|
- name: checkout repo
|
||||||
|
uses: funkincrew/ci-checkout@v5
|
||||||
with:
|
with:
|
||||||
submodules: 'recursive'
|
submodules: 'recursive'
|
||||||
fetch-depth: 0
|
token: ${{ steps.app_token.outputs.token }}
|
||||||
token: ${{ secrets.GH_RO_PAT }}
|
|
||||||
- name: check whether submodules exist
|
- name: check whether submodules exist
|
||||||
run: |
|
run: |
|
||||||
git config --global --add safe.directory $GITHUB_WORKSPACE
|
git config --global --add safe.directory $GITHUB_WORKSPACE
|
||||||
|
@ -48,15 +55,24 @@ jobs:
|
||||||
apt install sudo git curl unzip -y
|
apt install sudo git curl unzip -y
|
||||||
echo $GITHUB_WORKSPACE
|
echo $GITHUB_WORKSPACE
|
||||||
git config --global --add safe.directory $GITHUB_WORKSPACE
|
git config --global --add safe.directory $GITHUB_WORKSPACE
|
||||||
- uses: actions/checkout@v4
|
- name: get token from gh app
|
||||||
|
uses: actions/create-github-app-token@v1
|
||||||
|
id: app_token
|
||||||
|
with:
|
||||||
|
app-id: ${{ vars.APP_ID }}
|
||||||
|
private-key: ${{ secrets.APP_PEM }}
|
||||||
|
owner: ${{ github.repository_owner }}
|
||||||
|
- name: checkout repo
|
||||||
|
uses: funkincrew/ci-checkout@v5
|
||||||
with:
|
with:
|
||||||
submodules: 'recursive'
|
submodules: 'recursive'
|
||||||
fetch-depth: 0
|
token: ${{ steps.app_token.outputs.token }}
|
||||||
token: ${{ secrets.GH_RO_PAT }}
|
|
||||||
- uses: ./.github/actions/setup-haxeshit
|
- uses: ./.github/actions/setup-haxeshit
|
||||||
- name: Build game
|
- name: game build dependencies
|
||||||
run: |
|
run: |
|
||||||
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
|
||||||
|
- name: build game
|
||||||
|
run: |
|
||||||
haxelib run lime build html5 -release --times
|
haxelib run lime build html5 -release --times
|
||||||
ls
|
ls
|
||||||
- uses: ./.github/actions/upload-itch
|
- uses: ./.github/actions/upload-itch
|
||||||
|
@ -72,11 +88,18 @@ jobs:
|
||||||
contents: write
|
contents: write
|
||||||
actions: write
|
actions: write
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- name: get token from gh app
|
||||||
|
uses: actions/create-github-app-token@v1
|
||||||
|
id: app_token
|
||||||
|
with:
|
||||||
|
app-id: ${{ vars.APP_ID }}
|
||||||
|
private-key: ${{ secrets.APP_PEM }}
|
||||||
|
owner: ${{ github.repository_owner }}
|
||||||
|
- name: checkout repo
|
||||||
|
uses: funkincrew/ci-checkout@v5
|
||||||
with:
|
with:
|
||||||
submodules: 'recursive'
|
submodules: 'recursive'
|
||||||
fetch-depth: 0
|
token: ${{ steps.app_token.outputs.token }}
|
||||||
token: ${{ secrets.GH_RO_PAT }}
|
|
||||||
- uses: ./.github/actions/setup-haxeshit
|
- uses: ./.github/actions/setup-haxeshit
|
||||||
- name: Make HXCPP cache dir
|
- name: Make HXCPP cache dir
|
||||||
run: |
|
run: |
|
||||||
|
@ -101,6 +124,50 @@ jobs:
|
||||||
butler-key: ${{ secrets.BUTLER_API_KEY }}
|
butler-key: ${{ secrets.BUTLER_API_KEY }}
|
||||||
build-dir: export/release/windows/bin
|
build-dir: export/release/windows/bin
|
||||||
target: win
|
target: win
|
||||||
|
create-nightly-mac:
|
||||||
|
needs: check_date
|
||||||
|
if: ${{ needs.check_date.outputs.should_run != 'false'}}
|
||||||
|
runs-on: [self-hosted, macos]
|
||||||
|
steps:
|
||||||
|
- name: prepare container
|
||||||
|
run: |
|
||||||
|
git config --global --add safe.directory $GITHUB_WORKSPACE
|
||||||
|
- name: get token from gh app
|
||||||
|
uses: actions/create-github-app-token@v1
|
||||||
|
id: app_token
|
||||||
|
with:
|
||||||
|
app-id: ${{ vars.APP_ID }}
|
||||||
|
private-key: ${{ secrets.APP_PEM }}
|
||||||
|
owner: ${{ github.repository_owner }}
|
||||||
|
- name: checkout repo
|
||||||
|
uses: funkincrew/ci-checkout@v5
|
||||||
|
with:
|
||||||
|
submodules: 'recursive'
|
||||||
|
token: ${{ steps.app_token.outputs.token }}
|
||||||
|
- uses: ./.github/actions/setup-haxeshit
|
||||||
|
- name: Make HXCPP cache dir
|
||||||
|
run: |
|
||||||
|
mkdir -p ${{ runner.temp }}/hxcpp_cache
|
||||||
|
- name: Restore build cache
|
||||||
|
id: cache-build-win
|
||||||
|
uses: actions/cache@v3
|
||||||
|
with:
|
||||||
|
path: |
|
||||||
|
.haxelib
|
||||||
|
export
|
||||||
|
${{ runner.temp }}/hxcpp_cache
|
||||||
|
key: ${{ runner.os }}-build-mac-${{ github.ref_name }}-${{ hashFiles('**/hmm.json') }}
|
||||||
|
- name: Build game
|
||||||
|
run: |
|
||||||
|
haxelib run lime build macos -release --times
|
||||||
|
ls
|
||||||
|
env:
|
||||||
|
HXCPP_COMPILE_CACHE: "${{ runner.temp }}/hxcpp_cache"
|
||||||
|
- uses: ./.github/actions/upload-itch
|
||||||
|
with:
|
||||||
|
butler-key: ${{ secrets.BUTLER_API_KEY}}
|
||||||
|
build-dir: export/release/macos/bin
|
||||||
|
target: macos
|
||||||
# test-unit-win:
|
# test-unit-win:
|
||||||
# needs: create-nightly-win
|
# needs: create-nightly-win
|
||||||
# runs-on: windows-latest
|
# runs-on: windows-latest
|
||||||
|
@ -108,7 +175,7 @@ jobs:
|
||||||
# contents: write
|
# contents: write
|
||||||
# actions: write
|
# actions: write
|
||||||
# steps:
|
# steps:
|
||||||
# - uses: actions/checkout@v4
|
# - uses: funkincrew/ci-checkout@v5
|
||||||
# with:
|
# with:
|
||||||
# submodules: 'recursive'
|
# submodules: 'recursive'
|
||||||
# fetch-depth: 0
|
# fetch-depth: 0
|
||||||
|
|
Loading…
Reference in a new issue