Skip to content

Commit

Permalink
chore: release script
Browse files Browse the repository at this point in the history
  • Loading branch information
williamfzc committed Jun 13, 2023
1 parent 863fb4e commit d354658
Showing 1 changed file with 10 additions and 32 deletions.
42 changes: 10 additions & 32 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,20 @@ jobs:
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.19

- name: Command Level Test (Golang)
run: |
make
git clone https://github.com/gin-gonic/gin --depth=2
cd gin
../srctx diff --withIndex --lang GOLANG --outputHtml ../sample.html
cd ..
- name: Build
uses: crazy-max/ghaction-xgo@v2
with:
Expand All @@ -35,45 +44,14 @@ jobs:
ldflags: -s -w
buildmode: default

- name: Build Extra Dep
run: |
# scip-java
curl -fL "https://github.com/coursier/launchers/raw/master/cs-x86_64-pc-linux.gz" | gzip -d > coursier \
&& chmod +x coursier \
&& ./coursier setup -y \
&& ./coursier bootstrap --standalone --bat=true -o scip-java com.sourcegraph:scip-java_2.13:0.8.18 --main com.sourcegraph.scip_java.ScipJava
# pack
zip scip-java.zip ./scip-java ./scip-java.bat
- name: Command Level Test Prepare
run: |
cp build/srctx-linux-amd64 .
chmod +x ./scip-java
chmod +x ./srctx-linux-amd64
- name: Command Level Test (Golang)
run: |
curl -L https://github.com/sourcegraph/lsif-go/releases/download/v1.9.3/src_linux_amd64 -o /usr/local/bin/lsif-go
chmod +x /usr/local/bin/lsif-go
git clone https://github.com/gin-gonic/gin --depth=2
cd gin
lsif-go -v
../srctx-linux-amd64 diff --outputHtml ../golang.html
cd ..
- name: Command Level Test (Java)
run: |
git clone https://github.com/junit-team/junit4 --depth=2
cd junit4
../scip-java index -- clean package -DskipTests
../srctx-linux-amd64 diff --scip ./index.scip --outputHtml ../java.html
cd ..
- name: Release
uses: softprops/action-gh-release@v1
with:
files: |
build/srctx-*
java.html
golang.html
sample.html

0 comments on commit d354658

Please sign in to comment.