Skip to content

Commit

Permalink
Debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
luxaritas committed Jul 23, 2024
1 parent fcc4423 commit 57aeeaf
Showing 1 changed file with 2 additions and 85 deletions.
87 changes: 2 additions & 85 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ jobs:
- uses: actions/checkout@v4
with:
submodules: true
persist-credentials: false
- name: Use Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@v4
with:
Expand All @@ -40,89 +41,5 @@ jobs:
run: git config url.https://x-access-token:${{ steps.engines-app-token.outputs.token }}@github.com/eternagame/eternajs-folding-engines.insteadOf ssh://[email protected]/eternagame/eternajs-folding-engines
working-directory: ./eternajs
- name: Install dependencies
run: npm ci
run: npm i github:eternagame/eternajs-folding-engines#e8053f5094c748d9c7dc8c75d8fb942c585dfb2d
working-directory: ./eternajs
- name: Build
run: npm run build:${{ env.BUILD_TYPE }}
working-directory: ./eternajs
env:
APP_SERVER_URL: https://${{ env.API_DOMAIN }}
MOBILE_APP: true
DEBUG: false
ENGINE_LOCATION: package
- name: Upload build
uses: actions/upload-artifact@v4
with:
name: eternajs
path: ./eternajs/dist/${{ env.BUILD_TYPE }}

build-wrapper:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: true
- name: Use Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
- name: Cache node modules
uses: actions/cache@v4
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ env.NODE_VERSION }}-${{ hashFiles('./package-lock.json') }}
- name: Install dependencies
run: npm ci --ignore-scripts
- name: Build
run: npm run build:${{ env.BUILD_TYPE }}
env:
PARALLEL_BUILD: true
APP_SERVER_URL: https://${{ env.API_DOMAIN }}
INJECT_COOKIE_DOMAIN: .${{ env.API_DOMAIN }}
- name: Upload build
uses: actions/upload-artifact@v4
with:
name: app
path: ./www

build-app:
needs: [build-eternajs, build-wrapper]

strategy:
fail-fast: false
matrix:
include:
- runner: "macos-latest"
target: "ios"
- platform: "ubuntu-latest"
target: android

runs-on: ${{ matrix.platform }}

steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
name: app
path: ./www
- uses: actions/download-artifact@v4
with:
name: eternajs
path: ./www/eternajs
- name: Use Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
- name: Cache node modules
uses: actions/cache@v4
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ env.NODE_VERSION }}-${{ hashFiles('./eternajs/package-lock.json') }}
- name: Install dependencies
run: npm ci --ignore-scripts
- name: Build
run: npx cordova build ${{ matrix.target }} --${{ env.BUILD_TYPE == 'prod' && 'release' || 'debug' }} --device
env:
PARALLEL_BUILD: true

0 comments on commit 57aeeaf

Please sign in to comment.