This patch changes docker image for gbs build.
Also, code-linux runner has gbs build issue.
Signed-off-by: Yelin Jeong <yelini.jeong@samsung.com>
runs:
using: composite
steps:
- # copy gbs config
- run: |
- cp /root/.gbs.conf .
- shell: bash
- # initialize git repository
- - run: |
- git config --global user.name "nnsuite"
- git config --global user.email "nnsuite@samsung.com"
- git config --global --add safe.directory $PWD
- git init
- git add .
- git commit -a -m "Initialized"
- shell: bash
- # run build
- - run: |
- gbs build --define "_smp_mflags -j$(nproc)" -A ${{ inputs.arch }}
+ gbs -c .github/actions/build-tizen/gbs.conf build --define "_smp_mflags -j$(nproc)" -A ${{ inputs.arch }}
shell: bash
# copy package
- run: |
--- /dev/null
+[general]
+profile = profile.tizen
+tmpdir = /var/tmp
+editor = vim
+packaging_branch = tizen
+workdir = .
+
+[profile.tizen]
+repos = repo.base, repo.unified
+buildroot = ~/GBS-ROOT/
+
+[repo.base]
+url = http://download.tizen.org/snapshots/TIZEN/Tizen/Tizen-Base/reference/repos/standard/packages/
+
+[repo.unified]
+url = http://download.tizen.org/snapshots/TIZEN/Tizen/Tizen-Unified/reference/repos/standard/packages/
thread-comments: true
build:
- # CODE-hosted runner
- runs-on: [ code-linux, code-large ]
+ runs-on: [ code-extra-large ]
needs: prebuild
strategy:
matrix:
arch: ['aarch64', 'armv7l', 'x86_64']
container:
- image: aip-docker-local.bart.sec.samsung.net/n2s2_docker/fastmodel:latest
+ image: actions-docker.bart.sec.samsung.net/docker-gbs-base:latest
# for chroot-based build system
- options: --privileged
+ options: --user root --privileged
credentials:
username: ${{ secrets.BART_ID }}
password: ${{ secrets.BART_PW }}
- timeout-minutes: 120
+ timeout-minutes: 30
steps:
- name: Clone your repository
with:
arch: ${{ matrix.arch }}
output_path: /tmp/rpms
- - if: matrix.arch == 'aarch64'
- name: Fastmodel test
+ - name: Upload artifacts
+ uses: CODE-Actions/upload-artifact@v2
+ with:
+ name: built-package-${{ matrix.arch }}
+ path: /tmp/rpms
+
+ test:
+ runs-on: [ code-linux, code-large ]
+ needs: build
+ container:
+ image: aip-docker-local.bart.sec.samsung.net/n2s2_docker/fastmodel:latest
+ # for chroot-based build system
+ options: --privileged
+ credentials:
+ username: ${{ secrets.BART_ID }}
+ password: ${{ secrets.BART_PW }}
+
+ timeout-minutes: 120
+ steps:
+ - name: Clone your repository
+ uses: CODE-Actions/checkout@v2
+ with:
+ ref: ${{ github.event.pull_request.head.sha }}
+ - name: Download rpms
+ uses: CODE-Actions/download-artifact@v3
+ with:
+ name: built-package-aarch64
+ path: /tmp/rpms
+ - name: Fastmodel test
uses: ./.github/actions/test-fastmodel
with:
package_path: /tmp/rpms
test_type: apptest
art_id: ${{ secrets.BART_ID }}
art_pw: ${{ secrets.BART_PW }}
- - if: matrix.arch == 'aarch64'
- name: Upload test result
+ - name: Upload test result
uses: CODE-Actions/upload-artifact@v2
with:
name: fastmodel test log
/opt/trinity/share/log/err.txt
/opt/trinity/share/log/out.txt
/opt/trinity/share/log/result.txt
- - name: Upload artifacts
- uses: CODE-Actions/upload-artifact@v2
- with:
- name: built-package
- path: /tmp/rpms
- - if: matrix.arch == 'aarch64'
- name: Check if apptest failed
+ - name: Check if apptest failed
run: |
echo $(cat /opt/trinity/share/log/result.txt)
if [[ "$(cat /opt/trinity/share/log/result.txt)" != 0 ]]; then
jobs:
build-and-release-tizen:
- runs-on: [ code-linux, code-large ]
+ runs-on: [ code-extra-large ]
strategy:
matrix:
arch: ['aarch64', 'armv7l', 'x86_64']
container:
- image: aip-docker-local.bart.sec.samsung.net/n2s2_docker/bionic:latest
+ image: actions-docker.bart.sec.samsung.net/docker-gbs-base:latest
# for chroot-based build system
- options: --privileged
+ options: --user root --privileged
credentials:
username: ${{ secrets.BART_ID }}
password: ${{ secrets.BART_PW }}
- name: Upload artifacts
uses: CODE-Actions/upload-artifact@v2
with:
- name: built-package-${{ steps.date.outputs.date }}
+ name: built-package-${{ steps.date.outputs.date }}-${{ matrix.arch }}
path: /tmp/rpms
- name: Upload to artifactory
run: |
BART_PW: ${{ secrets.BART_PW }}
jobs:
- build-and-upload:
- runs-on: [ code-linux, code-large ]
+ build:
+ runs-on: [ code-extra-large ]
strategy:
matrix:
arch: ['aarch64', 'armv7l', 'x86_64']
container:
- image: aip-docker-local.bart.sec.samsung.net/n2s2_docker/fastmodel:latest
+ image: actions-docker.bart.sec.samsung.net/docker-gbs-base:latest
# for chroot-based build system
- options: --privileged
+ options: --user root --privileged
credentials:
username: ${{ secrets.BART_ID }}
password: ${{ secrets.BART_PW }}
with:
arch: ${{ matrix.arch }}
output_path: /tmp/rpms
- - if: matrix.arch == 'aarch64'
- name: Fastmodel test
- uses: ./.github/actions/test-fastmodel
- with:
- package_path: /tmp/rpms
- test_type: apptest-bulk
- art_id: ${{ secrets.BART_ID }}
- art_pw: ${{ secrets.BART_PW }}
- - if: matrix.arch == 'aarch64'
- name: Upload test result
- uses: CODE-Actions/upload-artifact@v2
- with:
- name: fastmodel test log
- path: |
- /opt/trinity/share/log/err.txt
- /opt/trinity/share/log/out.txt
- /opt/trinity/share/log/result.txt
- name: Upload artifacts
uses: CODE-Actions/upload-artifact@v2
with:
- name: built-package-${{ steps.date.outputs.date }}
+ name: built-package-${{ steps.date.outputs.date }}-${{ matrix.arch }}
path: /tmp/rpms
- name: Upload to artifactory
uses: ./.github/actions/upload-artifacts
art_repo: $BART_REPO/latest/${{ matrix.arch }}
art_id: $BART_ID
art_pw: $BART_PW
+
+ test:
+ runs-on: [ code-linux, code-large ]
+ needs: build
+ container:
+ image: aip-docker-local.bart.sec.samsung.net/n2s2_docker/fastmodel:latest
+ # for chroot-based build system
+ options: --privileged
+ credentials:
+ username: ${{ secrets.BART_ID }}
+ password: ${{ secrets.BART_PW }}
+
+ timeout-minutes: 120
+ steps:
+
+ - name: Get current date
+ id: date
+ run: echo "::set-output name=date::$(date +'%Y%m%d')"
+ - name: Clone your repository
+ uses: CODE-Actions/checkout@v2
+ with:
+ ref: ${{ github.event.pull_request.head.sha }}
+ - name: Download rpms
+ uses: CODE-Actions/download-artifact@v3
+ with:
+ name: built-package-${{ steps.date.outputs.date }}-aarch64
+ path: /tmp/rpms
+ - name: Fastmodel test
+ uses: ./.github/actions/test-fastmodel
+ with:
+ package_path: /tmp/rpms
+ test_type: apptest-bulk
+ art_id: ${{ secrets.BART_ID }}
+ art_pw: ${{ secrets.BART_PW }}
+ - name: Upload test result
+ uses: CODE-Actions/upload-artifact@v2
+ with:
+ name: fastmodel test log
+ path: |
+ /opt/trinity/share/log/err.txt
+ /opt/trinity/share/log/out.txt
+ /opt/trinity/share/log/result.txt
+ - name: Check if apptest failed
+ run: |
+ echo $(cat /opt/trinity/share/log/result.txt)
+ if [[ "$(cat /opt/trinity/share/log/result.txt)" != 0 ]]; then
+ exit 1
+ fi
+ shell : bash