Skip to content

Commit

Permalink
Workflow to create a package on all OS
Browse files Browse the repository at this point in the history
  • Loading branch information
MaximePouce committed May 8, 2024
1 parent 357adb8 commit 3a866b6
Showing 1 changed file with 45 additions and 12 deletions.
57 changes: 45 additions & 12 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,21 @@ name: Package kDrive desktop on all platforms

on:
workflow_dispatch:
BRANCH:
description: 'Branch to use'
required: true
default: 'main'
type: choice
options:
- main
- develop
- RELEASE-*
- KDESKTOP-834-CI-workflows-for-nightly-builds # Remove after testing
inputs:
BRANCH:
description: 'Branch to use'
required: true
default: 'main'
type: choice
options:
- main
- develop
- RELEASE-*
- KDESKTOP-834-CI-workflows-for-nightly-builds # Remove after testing
push:
branches:
- 'RELEASE-**'
- 'KDESKTOP-834-CI-workflows-for-nightly-builds' # Remove after testing

concurrency:
group: packaging
Expand All @@ -20,7 +25,35 @@ concurrency:
jobs:
package-Linux:
runs-on: [ self-hosted, Linux, X64, desktop-kdrive ]
env:
BRANCH_NAME: ${{ github.ref_name || inputs.BRANCH }}
steps:
- name: Checkout the PR
uses: actions/checkout@v4.1.1
with:
ref: ${{ env.BRANCH_NAME }}
submodules: recursive

- name: Grant building script execute permission
run : chmod +x ./infomaniak-build-tools/linux/build-ci-amd64.sh
- name: Build kDrive desktop
run : ./infomaniak-build-tools/linux/build-ci-amd64.sh

- name: Grant packaging script execute permission
run : chmod +x ./infomaniak-build-tools/linux/package-ci-amd64.sh
- name: Build kDrive desktop
run : ./infomaniak-build-tools/linux/package-ci-amd64.sh

package-MacOS:
runs-on: [ self-hosted, macOS, desktop-kdrive ]
env:
BRANCH_NAME: ${{ github.ref_name || inputs.BRANCH }}
steps:
- name: test the workflow
run : pwd
- name: Checkout the PR
uses: actions/checkout@v4.1.1
with:
ref: ${{ env.BRANCH_NAME }}
submodules: recursive

- name: Build and package kDrive desktop
run : ./infomaniak-build-tools/macos/build-drive.sh

0 comments on commit 3a866b6

Please sign in to comment.