Skip to content

Commit

Permalink
b
Browse files Browse the repository at this point in the history
  • Loading branch information
￴￴ committed Sep 23, 2024
0 parents commit eb60d33
Show file tree
Hide file tree
Showing 99 changed files with 7,554 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/FUNDING.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
github:
- 'azkadev'
- 'generalfoss'
2 changes: 2 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
github: [{main_username_owner}]
custom: ["https://t.me/{telegram_owner_username_bot}?start=donate_user_menu_gh_general_payment"]
150 changes: 150 additions & 0 deletions .github/workflows/beta_compile.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,150 @@
name: Beta Cross platform
on: [workflow_dispatch]

jobs:
build:
name: Compile Program dart cross platform @{main_username_owner}
runs-on: ${{ matrix.os }}
env:
DEBIAN_FRONTEND: noninteractive
GITHUB_TOKEN: ${{ secrets.TOKEN }}

strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
include:
- os: ubuntu-latest
output-name: linux
- os: macOS-latest
output-name: macos
- os: windows-latest
output-name: windows

steps:
- name: Export Release Timestamp
run: echo "APP_VERSION=v$(date +'%Y.%m.%d.%H.%M.%S')" >> $GITHUB_ENV
- name: Checkout repository
uses: actions/checkout@v3
with:
submodules: true
- name: Set up Java
uses: actions/setup-java@v3
with:
java-version: "15"
distribution: "adopt"
- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: "3.10.0"
channel: "stable"
- name: check dart version
run: dart --version
- name: Install Dependencies
run: |
if [ "$RUNNER_OS" == "Linux" ]; then
sudo apt update -y
sudo apt-get install -y make git zlib1g-dev libssl-dev gperf cmake clang libc++-dev libc++abi-dev php-cli cmake g++
sudo apt-get install -y clang cmake ninja-build pkg-config libgtk-3-dev liblzma-dev
fi
if [ "$RUNNER_OS" == "macOS" ]; then
brew update
brew install node
npm install -g appdmg
fi
shell: bash
- name: Install Dependencies App
run: |
if [ "$RUNNER_OS" == "Linux" ]; then
sudo apt-get install -y libmpv-dev mpv webkit2gtk-4.0-dev
fi
shell: bash
- name: Mkdir build
run: mkdir build
- name: Set Flutter enable devices
continue-on-error: true
run: |
flutter config --enable-web
flutter config --enable-linux-desktop
flutter config --enable-macos-desktop
flutter config --enable-windows-desktop
flutter config --enable-android
flutter config --enable-ios
# Compile Template
- name: Compile Application app_template
continue-on-error: true
shell: bash
run: |
cd lib/template/app_template
flutter pub get
flutter pub run packagex create .
flutter pub run packagex build all
if [ "$RUNNER_OS" == "Linux" ]; then
mv build/packagex/* ../../../build
fi
if [ "$RUNNER_OS" == "Windows" ]; then
mv build/packagex/* ../../../build
fi
if [ "$RUNNER_OS" == "macOS" ]; then
mv build/packagex/* ../../../build
fi
flutter clean
- name: Compile Package general_payment_dart
continue-on-error: true
shell: bash
run: |
cd package/general_payment_dart
flutter pub get
flutter pub run packagex create .
flutter pub run packagex build all
if [ "$RUNNER_OS" == "Linux" ]; then
mv build/packagex/* ../../build
fi
if [ "$RUNNER_OS" == "Windows" ]; then
mv build/packagex/* ../../build
fi
if [ "$RUNNER_OS" == "macOS" ]; then
mv build/packagex/* ../../build
fi
flutter clean
- name: Compile Package general_payment_flutter
continue-on-error: true
shell: bash
run: |
cd package/general_payment_flutter
flutter pub get
flutter pub run packagex create .
flutter pub run packagex build all
if [ "$RUNNER_OS" == "Linux" ]; then
mv build/packagex/* ../../build
fi
if [ "$RUNNER_OS" == "Windows" ]; then
mv build/packagex/* ../../build
fi
if [ "$RUNNER_OS" == "macOS" ]; then
mv build/packagex/* ../../build
fi
flutter clean
- name: Publish artifact
uses: actions/upload-artifact@v3
continue-on-error: true
with:
name: Artifact
path: build/*
- name: Publish Release
uses: marvinpinto/action-automatic-releases@latest
continue-on-error: true
with:
repo_token: ${{ secrets.TOKEN }}
automatic_release_tag: "beta-${{ matrix.output-name }}"
prerelease: false
title: "Release ${{ matrix.output-name }}"
files: |
build/*
49 changes: 49 additions & 0 deletions .github/workflows/general_workflow_deploy_docs_to_github_page.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# Generate Automatic By GLOBAL CORPORATION / GENERAL CORPORATION
#
# DEVELOPER:
#
# https://github.com/azkadev

# Simple workflow for deploying static content to GitHub Pages
name: Deploy static content to Pages

on:
# Runs on pushes targeting the default branch
push:
branches: ["main"]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: true

jobs:
# Single deploy job since we're just deploying
deploy:
environment:
name: github-pages
url: ${{steps.deployment.outputs.page_url}}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
# Upload entire repository
path: 'docs'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
66 changes: 66 additions & 0 deletions .github/workflows/general_workflow_release_app_development.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
name: app_release_type_development
on:
# push:
# # [push, workflow_dispatch]
# schedule: [{cron: "0 0 * * 0"}]
workflow_dispatch:
permissions:
contents: write
jobs:
build:
name: app_release_type_development
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
submodules: true

- name: Print
run: |
ls
- name: Set up Java
uses: actions/setup-java@v3
with:
java-version: "17"
distribution: "adopt"
- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: "3.22.3"
channel: "stable"
- name: check dart version
run: dart --version
- name: Install Dependencies
run: |
sudo apt update -y
sudo apt-get install -y make git zlib1g-dev libssl-dev gperf cmake clang libc++-dev libc++abi-dev php-cli cmake g++
sudo apt-get install -y clang cmake ninja-build pkg-config libgtk-3-dev liblzma-dev
# mpv
sudo apt-get install -y libmpv-dev mpv
shell: bash
- name: Mkdir result
run: mkdir result
- name: Set Flutter enable devices
continue-on-error: true
run: |
flutter config --enable-web
flutter config --enable-linux-desktop
flutter config --enable-macos-desktop
flutter config --enable-windows-desktop
flutter config --enable-android
flutter config --enable-ios
# General Bot App
- name: Pub General Machine System Services
run: |
cd general_machine_system_services/apps/global_app
flutter clean
flutter pub get
- name: Publish General Machine System Services Linux
env:
packagex_github_token: ${{ secrets.TOKEN_GITHUB }}
run: |
cd general_machine_system_services/apps/global_app
dart run packagex publish
66 changes: 66 additions & 0 deletions .github/workflows/general_workflow_release_app_production.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
name: app_release_type_production
on:
# push:
# # [push, workflow_dispatch]
# schedule: [{cron: "0 0 * * 0"}]
workflow_dispatch:
permissions:
contents: write
jobs:
build:
name: app_release_type_production
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
submodules: true

- name: Print
run: |
ls
- name: Set up Java
uses: actions/setup-java@v3
with:
java-version: "17"
distribution: "adopt"
- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: "3.22.3"
channel: "stable"
- name: check dart version
run: dart --version
- name: Install Dependencies
run: |
sudo apt update -y
sudo apt-get install -y make git zlib1g-dev libssl-dev gperf cmake clang libc++-dev libc++abi-dev php-cli cmake g++
sudo apt-get install -y clang cmake ninja-build pkg-config libgtk-3-dev liblzma-dev
# mpv
sudo apt-get install -y libmpv-dev mpv
shell: bash
- name: Mkdir result
run: mkdir result
- name: Set Flutter enable devices
continue-on-error: true
run: |
flutter config --enable-web
flutter config --enable-linux-desktop
flutter config --enable-macos-desktop
flutter config --enable-windows-desktop
flutter config --enable-android
flutter config --enable-ios
# General Bot App
- name: Pub General Machine System Services
run: |
cd general_machine_system_services/apps/global_app
flutter clean
flutter pub get
- name: Publish General Machine System Services Linux
env:
packagex_github_token: ${{ secrets.TOKEN_GITHUB }}
run: |
cd general_machine_system_services/apps/global_app
dart run packagex publish
Loading

0 comments on commit eb60d33

Please sign in to comment.