Create main.yml
author이상철/Tizen Platform Lab(SR)/삼성전자 <sc11.lee@samsung.com>
Thu, 20 Apr 2023 06:20:51 +0000 (15:20 +0900)
committerGitHub Enterprise <noreply-CODE@samsung.com>
Thu, 20 Apr 2023 06:20:51 +0000 (15:20 +0900)
.github/workflows/main.yml [new file with mode: 0644]

diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
new file mode 100644 (file)
index 0000000..8bc5088
--- /dev/null
@@ -0,0 +1,31 @@
+name: CI
+
+# Controls when the workflow will run
+on:
+  # Triggers the workflow on pull request events
+  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: [ self-hosted ]
+
+    # 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@v3
+
+      # Build
+      - name: Default build
+        run: gbs build -A armv7l -P tizen_public --include-all -B ~/GBS-ROOT-VAULT
+
+      # Build
+      - name: Build (64-bit)
+        run: gbs build -A aarch64 -P tizen_public --include-all -B ~/GBS-ROOT-VAULT