Skip to content
This repository has been archived by the owner on May 31, 2024. It is now read-only.

Commit

Permalink
Enable LFS
Browse files Browse the repository at this point in the history
Signed-off-by: Yuvraj <[email protected]>
  • Loading branch information
yindia committed Jun 8, 2021
1 parent ae37f6b commit 1846c8e
Show file tree
Hide file tree
Showing 7 changed files with 57 additions and 16 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
scripts/cross/*.tar.gz filter=lfs diff=lfs merge=lfs -text
12 changes: 6 additions & 6 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v2
with:
lfs: true
- uses: actions/setup-go@v1
with:
go-version: '1.16'
Expand Down Expand Up @@ -47,9 +49,10 @@ jobs:
CARGO_TARGET_X86_64_APPLE_DARWIN_LINKER: /usr/local/osxcross/target/bin/x86_64-apple-darwin15-clang
CARGO_TARGET_X86_64_PC_WINDOWS_GNU_LINKER: /usr/bin/x86_64-w64-mingw32-gcc
PATH: /usr/local/musl/bin:${PATH}
GOBIN: ${GOPATH}/bin
with:
version: latest
args: --snapshot --skip-publish --rm-dist
args: --snapshot --skip-publish --rm-dist
- name: Unit Tests
uses: cedrickring/[email protected]
env:
Expand All @@ -63,8 +66,5 @@ jobs:
flags: unittests
fail_ci_if_error: true
- name: Lint
uses: cedrickring/[email protected]
env:
GO111MODULE: "on"
with:
args: make install && make lint
run: |
make install && make lint
34 changes: 34 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,40 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v2
with:
lfs: true
- name: setup env
shell: bash
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS : true
run: |
echo "::add-path::${HOME}/.cargo/bin"
echo "::add-path::/usr/local/musl/bin:${PATH}"
echo "::add-path::/usr/local/musl-cross/bin"
echo "::add-path::/usr/local/osxcross/target/bin"
echo "::add-path::{GOPATH}/bin"
echo "::add-path::/usr/local/opt/llvm/bin"
echo "::add-path::/usr/bin/clang"
- name: Install system dependencies
env:
MUSL_VERSION: 1.1.24
MUSL_BUILD_TIME: 20210108172549
MUSL_CROSS_MAKE_VERSION: 0.9.9
GOPATH: $HOME/go
MUSL_CROSS_ARM64_BUILD_TIME: 20210108174735
OSXCROSS_VERSION: c2ad5e859d12a295c3f686a15bd7181a165bfa82
OSXCROSS_BUILD_TIME: 20210108174800
PATH: /usr/local/musl/bin:${PATH}
run: |
./scripts/ci/setup.sh
- name: Run GoReleaser dry run
uses: goreleaser/goreleaser-action@v2
env:
CARGO_TARGET_X86_64_UNKNOWN_LINUX_MUSL_LINKER: /usr/local/musl/bin/musl-gcc
CARGO_TARGET_AARCH64_UNKNOWN_LINUX_MUSL_LINKER: /usr/local/musl-cross/bin/aarch64-unknown-linux-musl-gcc
CARGO_TARGET_X86_64_APPLE_DARWIN_LINKER: /usr/local/osxcross/target/bin/x86_64-apple-darwin15-clang
CARGO_TARGET_X86_64_PC_WINDOWS_GNU_LINKER: /usr/bin/x86_64-w64-mingw32-gcc
PATH: /usr/local/musl/bin:${PATH}
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
Expand Down
17 changes: 7 additions & 10 deletions scripts/ci/setup.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,19 @@ function die() {
exit 1
}


sudo apt-get update
sudo apt-get install -y --no-install-recommends bzr clang libprotobuf-dev pkg-config protobuf-compiler
sudo apt-get install -y cmake gnupg libssl-dev libxml2-dev llvm-dev lzma-dev mingw-w64 graphviz

MUSL_ARCHIVE=musl-${MUSL_VERSION}-${MUSL_BUILD_TIME}.tar.gz
curl https://dl.influxdata.com/influxdb-ci/musl/${MUSL_VERSION}/${MUSL_ARCHIVE} -O && \
sudo tar xzf ${MUSL_ARCHIVE} -C /usr/local && \
rm ${MUSL_ARCHIVE}
sudo tar xzf scripts/cross/${MUSL_ARCHIVE} -C /usr/local && \

MUSL_CROSS_ARM64_ARCHIVE=musl-${MUSL_VERSION}-cross-aarch64-${MUSL_CROSS_MAKE_VERSION}-${MUSL_CROSS_ARM64_BUILD_TIME}.tar.gz
curl https://dl.influxdata.com/influxdb-ci/musl/${MUSL_VERSION}/musl-cross/${MUSL_CROSS_MAKE_VERSION}/${MUSL_CROSS_ARM64_ARCHIVE} -O && \
sudo tar xzf ${MUSL_CROSS_ARM64_ARCHIVE} -C /usr/local && \
rm ${MUSL_CROSS_ARM64_ARCHIVE}
sudo tar xzf scripts/cross/${MUSL_CROSS_ARM64_ARCHIVE} -C /usr/local && \

OSXCROSS_ARCHIVE=osxcross-${OSXCROSS_VERSION}-${OSXCROSS_BUILD_TIME}.tar.gz
curl https://dl.influxdata.com/influxdb-ci/osxcross/${OSXCROSS_VERSION}/${OSXCROSS_ARCHIVE} -O && \
sudo tar xzf ${OSXCROSS_ARCHIVE} -C /usr/local && \
rm ${OSXCROSS_ARCHIVE}
sudo tar xzf scripts/cross/${OSXCROSS_ARCHIVE} -C /usr/local && \

rustup target add \
x86_64-unknown-linux-musl \
Expand All @@ -31,4 +28,4 @@ rustup target add \
export CARGO_TARGET_X86_64_UNKNOWN_LINUX_MUSL_LINKER=/usr/local/musl/bin/musl-gcc
export CARGO_TARGET_AARCH64_UNKNOWN_LINUX_MUSL_LINKER=/usr/local/musl-cross/bin/aarch64-unknown-linux-musl-gcc
export CARGO_TARGET_X86_64_APPLE_DARWIN_LINKER=/usr/local/osxcross/target/bin/x86_64-apple-darwin15-clang
export CARGO_TARGET_X86_64_PC_WINDOWS_GNU_LINKER=/usr/bin/x86_64-w64-mingw32-gcc
export CARGO_TARGET_X86_64_PC_WINDOWS_GNU_LINKER=/usr/bin/x86_64-w64-mingw32-gcc
3 changes: 3 additions & 0 deletions scripts/cross/musl-1.1.24-20210108172549.tar.gz
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown

0 comments on commit 1846c8e

Please sign in to comment.