Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: pass environment variables to steps #134

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
26 changes: 17 additions & 9 deletions .github/workflows/test.yml
Expand Up @@ -38,15 +38,16 @@ jobs:
- uses: actions/checkout@v1
- name: Install dependencies
run: |
sudo apt-add-repository -y ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get -y install g++-7 lcov cmake openssl
sudo apt-add-repository -y ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get -y install g++-7 lcov cmake openssl
- name: Make scripts executable
run: sudo chmod -R +x ./.github/workflows/test/*.sh
- name: Environment variables
run: CC=gcc-7 && CXX=g++-7
- name: Build
run: ./.github/workflows/test/script_desktop.sh
env:
CC: gcc-7
CXX: g++-7
- name: Codecov upload
run: bash <(curl -s https://codecov.io/bash) -t ${{ secrets.CODECOV_TOKEN }}

Expand All @@ -57,18 +58,25 @@ jobs:
- uses: actions/checkout@v1
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get -y install clang-5.0 clang-format-5.0 clang-tidy-5.0 lcov cmake openssl
sudo apt-get update
sudo apt-get -y install clang-5.0 clang-format-5.0 clang-tidy-5.0 lcov cmake openssl
- name: Make scripts executable
run: sudo chmod -R +x ./.github/workflows/test/*.sh
- name: Environment variables
run: CC=clang-5.0 && CXX=clang++-5.0
- name: Build
run: ./.github/workflows/test/script_desktop.sh
env:
CC: clang-5.0
CXX: clang++-5.0
- name: Clang Tidy
run: ./.github/workflows/test/clang_tidy.sh
env:
CC: clang-5.0
CXX: clang++-5.0
- name: Clang Format
run: ./.github/workflows/test/clang_format.sh
env:
CC: clang-5.0
CXX: clang++-5.0

macos:
runs-on: macOS-latest
Expand Down