-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
40d6d03
commit 90d658e
Showing
2 changed files
with
56 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |