From 8c921ad97dbc4819f266283fa5946ee5f507e8ad Mon Sep 17 00:00:00 2001 From: Roshan R Chandar <43182697+Roshan-R@users.noreply.github.com> Date: Fri, 3 Sep 2021 20:45:26 +0530 Subject: [PATCH 1/2] Create main.yml --- .github/workflows/main.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..0e3ca45 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,34 @@ +# This is a basic workflow to help you get started with Actions + +name: CI + +# Controls when the workflow will run +on: + # Triggers the workflow on push or pull request events but only for the main branch + push: + branches: [ main ] + pull_request: + branches: [ main ] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + # This workflow contains a single job called "build" + build: + # The type of runner that the job will run on + runs-on: ubuntu-latest + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v2 + + # Runs a single command using the runners shell + - name: Run a one-line script + run: echo Hello, world! + + - name: Build Debian package + uses: dawidd6/action-debian-package@v1.4.0 + From 9b1c8b29e7b3a31efd39e9f1bc17182bae1c7c48 Mon Sep 17 00:00:00 2001 From: Roshan R Chandar <43182697+Roshan-R@users.noreply.github.com> Date: Sun, 5 Sep 2021 00:31:24 +0530 Subject: [PATCH 2/2] Update main.yml --- .github/workflows/main.yml | 41 ++++++++++++-------------------------- 1 file changed, 13 insertions(+), 28 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 0e3ca45..2994a79 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,34 +1,19 @@ -# This is a basic workflow to help you get started with Actions - -name: CI - -# Controls when the workflow will run on: - # Triggers the workflow on push or pull request events but only for the main branch push: - branches: [ main ] + branches: [main] pull_request: - branches: [ main ] - - # Allows you to run this workflow manually from the Actions tab - workflow_dispatch: - -# A workflow run is made up of one or more jobs that can run sequentially or in parallel +name: CI jobs: - # This workflow contains a single job called "build" - build: - # The type of runner that the job will run on + flatpak: + name: "Flatpak" runs-on: ubuntu-latest - - # Steps represent a sequence of tasks that will be executed as part of the job + container: + image: bilelmoussaoui/flatpak-github-actions:gnome-40 + options: --privileged steps: - # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - - uses: actions/checkout@v2 - - # Runs a single command using the runners shell - - name: Run a one-line script - run: echo Hello, world! - - - name: Build Debian package - uses: dawidd6/action-debian-package@v1.4.0 - + - uses: actions/checkout@v2 + - uses: bilelmoussaoui/flatpak-github-actions/flatpak-builder@v4 + with: + bundle: PyDrop.flatpak + manifest-path: com.github.Roshan_R.PyDrop.json + cache-key: flatpak-builder-${{ github.sha }}