-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #100 from olafurpg/build-tools
- Loading branch information
Showing
57 changed files
with
3,093 additions
and
1,477 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.158.0/containers/ubuntu/.devcontainer/base.Dockerfile | ||
|
||
# [Choice] Ubuntu version: bionic, focal | ||
ARG VARIANT="focal" | ||
FROM mcr.microsoft.com/vscode/devcontainers/base:0-${VARIANT} | ||
|
||
# [Optional] Uncomment this section to install additional OS packages. | ||
RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \ | ||
&& apt-get -y install --no-install-recommends default-jdk gradle maven golang-go \ | ||
&& go get github.com/sourcegraph/lsif-semanticdb/cmd/lsif-semanticdb | ||
|
||
|
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,27 @@ | ||
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at: | ||
// https://github.com/microsoft/vscode-dev-containers/tree/v0.158.0/containers/ubuntu | ||
{ | ||
"name": "Ubuntu", | ||
"build": { | ||
"dockerfile": "Dockerfile", | ||
// Update 'VARIANT' to pick an Ubuntu version: focal, bionic | ||
"args": { "VARIANT": "focal" } | ||
}, | ||
|
||
// Set *default* container specific settings.json values on container create. | ||
"settings": { | ||
"terminal.integrated.shell.linux": "/bin/bash" | ||
}, | ||
|
||
// Add the IDs of extensions you want installed when the container is created. | ||
"extensions": [], | ||
|
||
// Use 'forwardPorts' to make a list of ports inside the container available locally. | ||
// "forwardPorts": [], | ||
|
||
// Use 'postCreateCommand' to run commands after the container is created. | ||
// "postCreateCommand": "uname -a", | ||
|
||
// Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root. | ||
"remoteUser": "vscode" | ||
} |
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 |
---|---|---|
|
@@ -10,14 +10,14 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: olafurpg/setup-scala@v10 | ||
- uses: actions/setup-go@v2 | ||
with: | ||
java-version: [email protected] | ||
go-version: '^1.13.1' | ||
- run: go get github.com/sourcegraph/lsif-semanticdb/cmd/lsif-semanticdb | ||
- run: sbt test | ||
check: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: olafurpg/setup-scala@v10 | ||
with: | ||
java-version: [email protected] | ||
- run: sbt checkAll |
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,58 @@ | ||
name: Native Image | ||
on: | ||
push: | ||
branches: | ||
- master | ||
release: | ||
types: [published] | ||
jobs: | ||
unix: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [macOS-latest, ubuntu-latest, windows-latest] | ||
include: | ||
- os: macOS-latest | ||
uploaded_filename: lsif-java-x86_64-apple-darwin | ||
local_path: lsif-java/target/native-image/lsif-java | ||
- os: ubuntu-latest | ||
uploaded_filename: lsif-java-x86_64-pc-linux | ||
local_path: lsif-java/target/native-image/lsif-java | ||
- os: windows-latest | ||
uploaded_filename: lsif-java-x86_64-pc-win32.exe | ||
local_path: lsif-java\target\native-image\lsif-java.exe | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: olafurpg/setup-scala@v10 | ||
- uses: actions/setup-go@v2 | ||
with: | ||
go-version: '^1.13.1' | ||
- run: go get github.com/sourcegraph/lsif-semanticdb/cmd/lsif-semanticdb | ||
- run: git fetch --tags || true | ||
- name: sbt nativeImage | ||
shell: bash | ||
if: ${{ matrix.os != 'windows-latest' }} | ||
run: | | ||
sbt cli/nativeImage "cli/nativeImageRun --cwd tests/gradle-example" | ||
- name: sbt nativeImage | ||
shell: cmd | ||
if: ${{ matrix.os == 'windows-latest' }} | ||
run: >- | ||
"C:\Program Files (x86)\Microsoft Visual | ||
Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat" && sbt | ||
cli/nativeImage | ||
- uses: actions/upload-artifact@master | ||
with: | ||
path: ${{ matrix.local_path }} | ||
name: ${{ matrix.uploaded_filename }} | ||
- name: Upload release | ||
if: github.event_name == 'release' | ||
uses: actions/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ github.event.release.upload_url }} | ||
asset_path: ${{ matrix.local_path }} | ||
asset_name: ${{ matrix.uploaded_filename }} | ||
asset_content_type: application/zip |
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
Oops, something went wrong.