Skip to content

Commit

Permalink
Update actions
Browse files Browse the repository at this point in the history
  • Loading branch information
DerGoogler committed Oct 27, 2023
1 parent e360319 commit de9a5c4
Show file tree
Hide file tree
Showing 4 changed files with 99 additions and 87 deletions.
41 changes: 26 additions & 15 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,29 +2,40 @@ name: Android CI

on:
push:
branches: [ master ]
branches: [master]
pull_request:
branches: [ master ]
branches: [master]

defaults:
run:
working-directory: Android

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'adopt'
cache: gradle

- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew build
- uses: actions/checkout@v2
- name: set up JDK 11
uses: actions/setup-java@v2
with:
java-version: "11"
distribution: "adopt"
cache: gradle

- name: Set up Node.js 18
uses: actions/setup-node@v3
with:
node-version: 18

- name: Linking Node.js binaries
run: sudo ln `which node` /usr/bin/node && sudo ln `which npm` /usr/bin/npm

- name: Grant execute permission for gradlew
run: chmod +x gradlew

- name: Installing dependencies
run: ./gradlew app:npmInstall

- name: Build with Gradle
run: ./gradlew build
58 changes: 29 additions & 29 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ name: "CodeQL"

on:
push:
branches: [ master ]
branches: [master]
pull_request:
# The branches below must be a subset of the branches above
branches: [ master ]
branches: [master]
schedule:
- cron: '43 18 * * 2'
- cron: "43 18 * * 2"

jobs:
analyze:
Expand All @@ -32,40 +32,40 @@ jobs:
strategy:
fail-fast: false
matrix:
language: [ 'javascript', 'java' ]
language: ["javascript", "java", "cpp"]
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
# Learn more:
# https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed

steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Checkout repository
uses: actions/checkout@v2

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# queries: ./path/to/local/query, your-org/your-repo/queries@main
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# queries: ./path/to/local/query, your-org/your-repo/queries@main

# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v1
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v1

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl
# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl

# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
# and modify them (or add more) to build your code if your project
# uses a compiled language
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
# and modify them (or add more) to build your code if your project
# uses a compiled language

#- run: |
# make bootstrap
# make release
#- run: |
# make bootstrap
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
55 changes: 30 additions & 25 deletions .github/workflows/mmrl-debug.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#file: noinspection SpellCheckingInspection
name: Generate APK Debug

on:
Expand Down Expand Up @@ -37,11 +36,14 @@ jobs:
java-version: 17
distribution: "temurin"

- name: Set up Node.js 18
- name: Set up Node.js 16
uses: actions/setup-node@v3
with:
node-version: 18

- name: Linking Node.js binaries
run: sudo ln `which node` /usr/bin/node && sudo ln `which npm` /usr/bin/npm

- name: Setup Android SDK
uses: android-actions/setup-android@v2

Expand All @@ -54,41 +56,44 @@ jobs:
jdks
${{ github.workspace }}/.gradle/configuration-cache
- name: Build Debug APK
run: |
chmod +x ./gradlew
cd ./../Website
npm install --force
npm run web:dev-app
cd ../Android
./gradlew app:assembleDefaultDebug
- name: Change wrapper permissions
run: chmod +x ./gradlew

- name: Installing dependencies
run: ./gradlew app:npmInstall

- name: Build apk debug
run: ./gradlew app:assembleDefaultDebug

- name: Build apk debug
run: ls app/build/outputs/apk/default/debug/

- name: Upload MMRL-arm64-v8a-debug
- name: Upload MMRL-default-arm64-v8a-debug
uses: actions/upload-artifact@v3
with:
name: MMRL-arm64-v8a-debug
path: app/default/debug/*-arm64-v8a-debug.apk
name: MMRL-default-arm64-v8a-debug
path: ${{ github.workspace }}/Android/app/build/outputs/apk/default/debug/*-default-arm64-v8a-debug.apk

- name: Upload MMRL-armeabi-v7a-debug
- name: Upload MMRL-default-armeabi-v7a-debug
uses: actions/upload-artifact@v3
with:
name: MMRL-armeabi-v7a-debug
path: app/default/debug/*-armeabi-v7a-debug.apk
name: MMRL-default-armeabi-v7a-debug
path: ${{ github.workspace }}/Android/app/build/outputs/apk/default/debug/*-default-armeabi-v7a-debug.apk

- name: Upload MMRL-universal-debug
- name: Upload MMRL-default-universal-debug
uses: actions/upload-artifact@v3
with:
name: MMRL-universal-debug
path: app/default/debug/*-universal-debug.apk
name: MMRL-default-universal-debug
path: ${{ github.workspace }}/Android/app/build/outputs/apk/default/debug/*-default-universal-debug.apk

- name: Upload MMRL-x86-debug
- name: Upload MMRL-default-x86-debug
uses: actions/upload-artifact@v3
with:
name: MMRL-x86-debug
path: app/default/debug/*-x86-debug.apk
name: MMRL-default-x86-debug
path: ${{ github.workspace }}/Android/app/build/outputs/apk/default/debug/*-default-x86-debug.apk

- name: Upload MMRL-x86_64-debug
- name: Upload MMRL-default-x86_64-debug
uses: actions/upload-artifact@v3
with:
name: MMRL-x86_64-debug
path: app/default/debug/*-x86_64-debug.apk
name: MMRL-default-x86_64-debug
path: ${{ github.workspace }}/Android/app/build/outputs/apk/default/debug/*-default-x86_64-debug.apk
32 changes: 14 additions & 18 deletions .github/workflows/webpack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: Build with Webpack

on:
push:
branches: [ master ]
branches: [master]
pull_request:
branches: [ master ]
branches: [master]

defaults:
run:
Expand All @@ -14,23 +14,19 @@ jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [ 16, 18 ]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v2

- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- uses: actions/setup-node@v3
with:
node-version: 18

- name: Build Development
run: |
npm install --force
npm run web:dev
- name: Build Development
run: |
npm install --force
npm run web:dev
- name: Build Production
run: |
npm install --force
npm run web:prod
- name: Build Production
run: |
npm install --force
npm run web:prod

0 comments on commit de9a5c4

Please sign in to comment.