From befb892c43fd61c51e3ac2925909dd48fd8a22dd Mon Sep 17 00:00:00 2001 From: Pebkac03 Date: Thu, 8 Aug 2024 00:37:33 +0200 Subject: [PATCH] started on CD --- .github/workflows/build.yaml | 49 ++++++++++++++++++++++++++++ distribute_options.yaml | 8 +++++ linux/packaging/deb/make_config.yaml | 31 ++++++++++++++++++ 3 files changed, 88 insertions(+) create mode 100644 .github/workflows/build.yaml create mode 100644 distribute_options.yaml create mode 100644 linux/packaging/deb/make_config.yaml diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml new file mode 100644 index 0000000..5b4802e --- /dev/null +++ b/.github/workflows/build.yaml @@ -0,0 +1,49 @@ +name: + Build + + # Controls what will trigger the workflow. + # Change it to your needs. +on: + # A new push to the "main" branch. + push: + branches: ["main"] + # A new pull request to the "main" branch. + pull_request: + branches: ["main"] + + # Allows to trigger the workflow from GitHub interfaces. + workflow_dispatch: + +# A single workflow can have multiple jobs. +jobs: + # 'A new job is defined with the name: "build_android" + build_windows: + # Defines what operating system will be used for the actions. + # For android, we will use Linux GitHub-Hosted Runner. + runs-on: ubuntu-22.04 + # Defines what step should be passed for successful run + steps: + # Checkout to the selected branch + - name: Checkout + uses: actions/checkout@v3 + # Download and install flutter packages + - name: Install Flutter + uses: subosito/flutter-action@v2 + with: + # Define which stable flutter version should be used + flutter-version: "3.23.0" + channel: "stable" + # Enables cache for flutter packages + # Speed up the process + cache: true + # Get Flutter project dependencies + - name: Update linux + run: | + sudo apt-get update -y + sudo apt-get install clang cmake git ninja-build pkg-config libgtk-3-dev liblzma-dev libstdc++-12-dev + - name: Get dependencies + run: flutter pub get + - name: get flutter_distributor + run: dart pub global activate flutter_distributor + - name: Build release + run: flutter_distributor release --name=release --jobs=release-linux-deb diff --git a/distribute_options.yaml b/distribute_options.yaml new file mode 100644 index 0000000..512abc2 --- /dev/null +++ b/distribute_options.yaml @@ -0,0 +1,8 @@ +output: dist/ +releases: + - name: release + jobs: + - name: release-linux-deb + package: + platform: linux + target: deb \ No newline at end of file diff --git a/linux/packaging/deb/make_config.yaml b/linux/packaging/deb/make_config.yaml new file mode 100644 index 0000000..16be9d9 --- /dev/null +++ b/linux/packaging/deb/make_config.yaml @@ -0,0 +1,31 @@ +display_name: Espanso GUI +package_name: espanso_gui + +maintainer: + name: Jacob Ljungström + email: jacob.ljungstrom03@gmail.com + +priority: optional + +section: x11 + +dependencies: + +essential: false + +icon: linux/assets/apidash.png + +postuninstall_scripts: + - echo "Sorry to see you go." + +keywords: + - API + - API Client + +generic_name: API Client + +categories: + - Development + - Utility + +startup_notify: true