mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2025-11-27 22:56:00 +00:00
insane in the membrane
This commit is contained in:
parent
fbff2dc156
commit
918c05b0ed
13
.github/actions/setup-haxe/action.yml
vendored
13
.github/actions/setup-haxe/action.yml
vendored
|
|
@ -17,6 +17,8 @@ inputs:
|
||||||
targets:
|
targets:
|
||||||
description: 'Targets we plan to compile to. Installs native dependencies needed.'
|
description: 'Targets we plan to compile to. Installs native dependencies needed.'
|
||||||
required: true
|
required: true
|
||||||
|
gh-token:
|
||||||
|
description: 'GitHub secret for private repos as dependencies'
|
||||||
|
|
||||||
runs:
|
runs:
|
||||||
using: "composite"
|
using: "composite"
|
||||||
|
|
@ -73,8 +75,19 @@ runs:
|
||||||
name: Install dependencies
|
name: Install dependencies
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
|
key="credential.https://github.com"
|
||||||
git config --list --show-origin --show-scope
|
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
|
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"
|
echo "TIMER_DONE=$(date +%s)" >> "$GITHUB_ENV"
|
||||||
|
|
||||||
# by default use a shared hxcpp cache
|
# by default use a shared hxcpp cache
|
||||||
|
|
|
||||||
10
.github/workflows/build-game.yml
vendored
10
.github/workflows/build-game.yml
vendored
|
|
@ -42,6 +42,8 @@ jobs:
|
||||||
|
|
||||||
- name: Setup build environment
|
- name: Setup build environment
|
||||||
uses: ./.github/actions/setup-haxe
|
uses: ./.github/actions/setup-haxe
|
||||||
|
with:
|
||||||
|
gh-token: ${{ steps.app_token.outputs.token }}
|
||||||
|
|
||||||
- name: Build game
|
- name: Build game
|
||||||
if: ${{ matrix.target == 'windows' }}
|
if: ${{ matrix.target == 'windows' }}
|
||||||
|
|
@ -102,9 +104,15 @@ jobs:
|
||||||
- if: ${{ steps.cache-hmm.outputs.cache-hit != 'true' }}
|
- if: ${{ steps.cache-hmm.outputs.cache-hit != 'true' }}
|
||||||
name: Install dependencies
|
name: Install dependencies
|
||||||
run: |
|
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 --debug git funkVis https://github.com/FunkinCrew/funkVis backend-rework
|
||||||
haxelib --global run hmm install -q
|
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' }}
|
- if: ${{ matrix.target != 'html5' }}
|
||||||
name: Restore hxcpp cache
|
name: Restore hxcpp cache
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue