Skip to content

Commit

Permalink
simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
jameslamb committed May 31, 2020
1 parent e92b324 commit 3e378bf
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,23 +37,19 @@ jobs:
- name: Setup and run tests on Linux and macOS
if: matrix.os != 'windows-latest'
shell: bash
env:
COMPILER: "${{ matrix.compiler }}"
CONDA_ENV: "test-env"
GITHUB_ACTIONS: "true"
TASK: "${{ matrix.task }}"
run: |
export TASK="${{ matrix.task }}"
export COMPILER="${{ matrix.compiler }}"
export GITHUB_ACTIONS="true"
if [[ "${{ matrix.os }}" == "macOS-latest" ]]; then
export OS_NAME="macos"
export R_MAC_VERSION=3.6.3
elif [[ "${{ matrix.os }}" == "ubuntu-latest" ]]; then
export OS_NAME="linux"
export R_LINUX_VERSION=3.6.3-1bionic;
fi
if [ -z ${{ matrix.compiler }} ]; then
export COMPILER=${{ matrix.compiler }}
fi
export BUILD_DIRECTORY="$GITHUB_WORKSPACE"
export CONDA_ENV="test-env"
export CONDA="$HOME/miniconda"
export PATH="$CONDA/bin:${HOME}/.local/bin:$PATH"
export LGB_VER=$(head -n 1 VERSION.txt)
Expand Down

0 comments on commit 3e378bf

Please sign in to comment.