Skip to content

Commit

Permalink
Upload BCR friendly archives (#233)
Browse files Browse the repository at this point in the history
* Upload BCR friendly archives

GH archives cannot be trusted to be stable

* more updates

* update

* keep sha version
  • Loading branch information
tinder-maxwellelliott authored Oct 3, 2024
1 parent ba464a4 commit 9b97b64
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 13 deletions.
33 changes: 20 additions & 13 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,55 +11,55 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Setup Java JDK
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '11'
- name: Setup Go environment
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: ^1.17
id: go
- name: Setup Bazelisk
run: go install github.com/bazelbuild/bazelisk@latest && export PATH=$PATH:$(go env GOPATH)/bin
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Run bazel-diff tests
run: ~/go/bin/bazelisk coverage --combined_report=lcov //cli/... --enable_bzlmod=true
test-jre11:
runs-on: ubuntu-latest
steps:
- name: Setup Java JDK
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '11'
- name: Setup Go environment
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: ^1.17
id: go
- name: Setup Bazelisk
run: go install github.com/bazelbuild/bazelisk@latest && export PATH=$PATH:$(go env GOPATH)/bin
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Run bazel-diff tests
run: ~/go/bin/bazelisk coverage --combined_report=lcov //cli/... --enable_bzlmod=false
test-jre11-run-example:
runs-on: ubuntu-latest
steps:
- name: Setup Java JDK
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '11'
id: java
- name: Setup Go environment
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: ^1.17
id: go
- name: Setup Bazelisk
run: go install github.com/bazelbuild/bazelisk@latest && export PATH=$PATH:$(go env GOPATH)/bin
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Run bazel-diff example script
Expand All @@ -72,23 +72,30 @@ jobs:
java: [ '11' ]
steps:
- name: Setup Java JDK
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: ${{ matrix.java }}
id: java
- name: Setup Go environment
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: ^1.17
id: go
- name: Setup Bazelisk
run: go install github.com/bazelbuild/bazelisk@latest && export PATH=$PATH:$(go env GOPATH)/bin
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Build deployable JAR
run: ~/go/bin/bazelisk build //cli:bazel-diff_deploy.jar
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: bazel-diff_deploy.jar
path: bazel-bin/cli/bazel-diff_deploy.jar
if-no-files-found: error
- name: Build release source archive
run: make release_source_archive
- uses: actions/upload-artifact@v4
with:
name: release_source_archive
path: archives/
if-no-files-found: error
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,4 @@ user.bazelrc
!bazel-diff-example.sh
.DS_Store
!.bazelversion
archives/
9 changes: 9 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
.PHONY: release_source_archive
release_source_archive: version ?= $$(git describe --tags --abbrev=0 2>/dev/null || git rev-parse HEAD)
release_source_archive:
mkdir -p archives
tar --exclude-vcs \
--exclude=bazel-* \
--exclude=.github \
--exclude=archives \
-zcf "archives/bazel_diff_$(version).tar.gz" .

0 comments on commit 9b97b64

Please sign in to comment.