diff --git a/.github/workflows/Sonarcloud.yml b/.github/workflows/Sonarcloud.yml index 6828e7f01..c563c2448 100644 --- a/.github/workflows/Sonarcloud.yml +++ b/.github/workflows/Sonarcloud.yml @@ -61,7 +61,9 @@ jobs: run: cd build/bin && llvm-cov-8 show -instr-profile hlasm_profile library_test server_test > coverage.txt - name: Pull request setting if: github.event_name == 'pull_request' - run: echo ::set-env name=PR_NUMBER::-Dsonar.pullrequest.key=$(jq --raw-output .pull_request.number "$GITHUB_EVENT_PATH") + run: | + echo ::set-env name=PR_NUMBER::-Dsonar.pullrequest.key=$(jq --raw-output .pull_request.number "$GITHUB_EVENT_PATH") + echo ::set-env name=HEAD_BRANCH::-Dsonar.pullrequest.branch=${{ github.head_ref }} - name: Sonar scan env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -87,5 +89,6 @@ jobs: -Dsonar.cfamily.llvm-cov.reportPath=build/bin/coverage.txt -Dsonar.cfamily.cache.enabled=false -Dsonar.projectVersion=${{ env.VERSION }} + ${{ env.HEAD_BRANCH }} ${{ env.PR_NUMBER }} diff --git a/.github/workflows/alpine.yml b/.github/workflows/alpine.yml new file mode 100644 index 000000000..5a6fc9343 --- /dev/null +++ b/.github/workflows/alpine.yml @@ -0,0 +1,52 @@ +# +# Copyright (c) 2019 Broadcom. +# The term "Broadcom" refers to Broadcom Inc. and/or its subsidiaries. +# +# This program and the accompanying materials are made +# available under the terms of the Eclipse Public License 2.0 +# which is available at https://www.eclipse.org/legal/epl-2.0/ +# +# SPDX-License-Identifier: EPL-2.0 +# +# Contributors: +# Broadcom, Inc. - initial API and implementation +# + +name: Alpine build +on: + push: + branches: + - master + - development + pull_request: + branches: + - master + - development +jobs: + alpine-build: + name: Linux language server + runs-on: ubuntu-18.04 + container: + image: alpine:3.10 + + steps: + - uses: actions/checkout@v1 + - name: Requirements install + run: apk update && apk add --no-cache linux-headers git g++ cmake util-linux-dev npm ninja pkgconfig openjdk8 maven + - name: Configure + run: mkdir build && cd build && cmake -G Ninja ../ + - name: Build + run: cd build && cmake --build . + - name: Test + run: cd build/bin && ./server_test && ./library_test + - name: Get VSIX filename + run: echo ::set-env name=VSIX_FILENAME::$(ls build/bin/*.vsix) + - name: Get version + run: echo ::set-env name=VERSION::$(node -e "console.log(require('./clients/vscode-hlasmplugin/package.json').version)") + - name: Rename VSIX + run: mv ${{ env.VSIX_FILENAME }} hlasm-language-support-alpine-${{ env.VERSION }}.vsix + - name: Upload VSIX + uses: actions/upload-artifact@v1 + with: + name: hlasm-language-support-alpine-${{ env.VERSION }}.vsix + path: hlasm-language-support-alpine-${{ env.VERSION }}.vsix