Skip to content

Commit

Permalink
use clang
Browse files Browse the repository at this point in the history
  • Loading branch information
nacardin committed Nov 12, 2020
1 parent bed42c6 commit 855444b
Show file tree
Hide file tree
Showing 6 changed files with 45 additions and 45 deletions.
3 changes: 0 additions & 3 deletions .cargo/config
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@
[target.x86_64-unknown-linux-musl]
linker = "x86_64-linux-musl-gcc"

[target.armv7-unknown-linux-gnueabihf]
linker = "arm-linux-gnueabihf-gcc"
13 changes: 7 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -200,13 +200,14 @@ jobs:
- name: install fluvio system chart
run: |
FLV_CMD=true ./target/debug/fluvio cluster install --sys --develop
- name: Install musl-tools for Linux
run: |
sudo apt install -y musl-tools
sudo ln -s /usr/bin/musl-gcc /usr/local/bin/x86_64-linux-musl-gcc
- name: Install Clang
run: sudo apt install -y clang-10
- name: smoke test k8 tls
run: |
FLV_CMD=true FLV_SOCKET_WAIT=600 make smoke-test-k8-tls-root
run: make smoke-test-k8-tls-root
env:
FLV_CMD: true
FLV_SOCKET_WAIT: 600
TARGET_CC: clang
- name: Save logs
if: failure()
run: kubectl logs flv-sc > /tmp/flv_sc.log
Expand Down
12 changes: 5 additions & 7 deletions .github/workflows/publish_latest_docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,11 @@ jobs:
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Install Musl Tools
run: |
sudo apt install -y musl-tools
sudo ln -s /usr/bin/musl-gcc /usr/local/bin/x86_64-linux-musl-gcc
export TARGET_CC=musl-gcc
- name: Install Clang
run: sudo apt install -y clang-10
- name: Login to Docker Hub
run: docker login --username=${{ secrets.DOCKER_USERNAME }} --password=${{ secrets.DOCKER_PASSWORD }}
- name: Publish latest development Fluvio Image
run: |
make latest_image
run: make latest_image
env:
TARGET_CC: clang
12 changes: 5 additions & 7 deletions .github/workflows/publish_nightly_docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,11 @@ jobs:
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Install Musl Tools
run: |
sudo apt install -y musl-tools
sudo ln -s /usr/bin/musl-gcc /usr/local/bin/x86_64-linux-musl-gcc
export TARGET_CC=musl-gcc
- name: Install Clang
run: sudo apt install -y clang-10
- name: Login to Docker Hub
run: docker login --username=${{ secrets.DOCKER_USERNAME }} --password=${{ secrets.DOCKER_PASSWORD }}
- name: Publish nightly development Fluvio Image
run: |
make nightly_image
run: make nightly_image
env:
TARGET_CC: clang
29 changes: 13 additions & 16 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,14 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install Musl Tools for Linux
run: |
sudo apt install -y musl-tools
sudo ln -s /usr/bin/musl-gcc /usr/local/bin/x86_64-linux-musl-gcc
- name: Install Clang
run: sudo apt install -y clang-10
- name: Login to Docker Hub
run: docker login --username=${{ secrets.DOCKER_USERNAME }} --password=${{ secrets.DOCKER_PASSWORD }}
- name: Release docker
run: |
export TARGET_CC=musl-gcc
docker login --username=${{ secrets.DOCKER_USERNAME }} --password=${{ secrets.DOCKER_PASSWORD }}
make release_image
run: make release_image
env:
TARGET_CC: clang

upload_linux_cli:
needs: create_release
Expand All @@ -58,15 +57,13 @@ jobs:
go get github.com/github-release/github-release
ls $(go env GOPATH)/bin
cp $(go env GOPATH)/bin/github-release /home/linuxbrew/.linuxbrew/sbin
- name: Install Musl Tools for Linux
run: |
sudo apt install -y musl-tools
sudo ln -s /usr/bin/musl-gcc /usr/local/bin/x86_64-linux-musl-gcc
- name: Install Clang
run: sudo apt install -y clang-10
- name: Build Linux CLI
run: |
export TARGET_CC=musl-gcc
make build-cli-linux
- name: Upload Darin CLI
run: make build-cli-linux
env:
TARGET_CC: clang
- name: Upload Linux CLI
run: make upload-gh-linux
env:
GITHUB_TOKEN: ${{ secrets.ACTION_RELEASE }}
Expand Down
21 changes: 15 additions & 6 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 855444b

Please sign in to comment.