Skip to content
This repository was archived by the owner on Apr 25, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
massif.out.*
.vscode
.devcontainer
build/
bin/
28 changes: 28 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: release

on:
push:
branches:
- llvm-10.0.0-lsif-clang

jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Unshallow
run: git fetch --prune --unshallow && git submodule update --init --recursive
- name: Docker login
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push
id: docker_build
uses: docker/build-push-action@v2
with:
push: true
tags: sourcegraph/lsif-clang:latest
- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}
17 changes: 17 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
FROM ubuntu:20.04 as build

RUN apt update && apt install -y llvm-10 clang clang-10 libclang-10-dev cmake

WORKDIR /lsif-clang

COPY . .

RUN cmake -B build && make -C build -j$(nproc)

FROM ubuntu:20.04

RUN apt update && apt install -y llvm-10 cmake

COPY --from=build /lsif-clang/bin/lsif-clang /usr/local/bin/lsif-clang

ENTRYPOINT [ "lsif-clang" ]