1
0
Fork 0
mirror of https://github.com/ninjamuffin99/Funkin.git synced 2024-11-26 00:35:11 +00:00

insane in the membrane

This commit is contained in:
Hazel 2024-04-24 21:06:21 +01:00
parent fbff2dc156
commit 918c05b0ed
2 changed files with 22 additions and 1 deletions

View file

@ -17,6 +17,8 @@ inputs:
targets:
description: 'Targets we plan to compile to. Installs native dependencies needed.'
required: true
gh-token:
description: 'GitHub secret for private repos as dependencies'
runs:
using: "composite"
@ -73,8 +75,19 @@ runs:
name: Install dependencies
shell: bash
run: |
key="credential.https://github.com"
git config --list --show-origin --show-scope
if [ ! -z "${{ inputs.gh-token }}" ]; then
git config --global "credential.helper" 'cache --timeout=3600'
git config --global "$key.username" "git"
git config --global "$key.password" "${{ inputs.gh-token }}"
fi
haxelib --debug --global run hmm install
if [ ! -z "${{ inputs.gh-token }}" ]; then
git config --global --unset "credential.helper"
git config --global --unset "$key.username"
git config --global --unset "$key.password"
fi
echo "TIMER_DONE=$(date +%s)" >> "$GITHUB_ENV"
# by default use a shared hxcpp cache

View file

@ -42,6 +42,8 @@ jobs:
- name: Setup build environment
uses: ./.github/actions/setup-haxe
with:
gh-token: ${{ steps.app_token.outputs.token }}
- name: Build game
if: ${{ matrix.target == 'windows' }}
@ -102,9 +104,15 @@ jobs:
- if: ${{ steps.cache-hmm.outputs.cache-hit != 'true' }}
name: Install dependencies
run: |
git config --global url.https://${{ steps.app_token.outputs.token }}@github.com/.insteadOf https://github.com/
key="credential.https://github.com"
git config --global "credential.helper" 'cache --timeout=3600'
git config --global "$key.username" "git"
git config --global "$key.password" "${{ steps.app_token.outputs.token }}"
haxelib --debug git funkVis https://github.com/FunkinCrew/funkVis backend-rework
haxelib --global run hmm install -q
git config --global --unset "credential.helper"
git config --global --unset "$key.username"
git config --global --unset "$key.password"
- if: ${{ matrix.target != 'html5' }}
name: Restore hxcpp cache