forked from microsoft/LightGBM
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
…ft#3119) * GitHub Actions * ok * fixing on list * stuff * directories * directories * things * env variables * working dir * running a bunch of tasks * more builds * PATH * actually use R task * TASK * be right, often * doing stuff * trying stuff * more paths * conda activate * updating PATH * trying bash * where the hell is activate * WHERE IS ACTIVATE * set up conda * more conda * PLEASE WORK * installing cpplint * try r-package * R version * try windows job * make windows work * use powershell * exe * use conda * conda init powershell * different conda approach * make it work * cleaning up * init powershell * fixing windows * more windows * build directory * no way right * maybe it will work * trying Visual Studio * do this * Windows is interesting * put back check-output * set compiler * stuff * more fixes * fix the broken things * updating jobs * continuing * poweshell is bad * ok so maybe not powershell * cmon now * ok so * fixing env variables * maybe this * MINGW job * cleaning up * conda init powershell * moving more R stuff into GitHub Actions * everything else * use powershell * cmon now powershell * ttry to Continue * override powershell * peg MiKTeX URL * what is happening * try powershell -File * trying stuff * path * more testing of output * Matches uppercase * more regex stuff * this is getting ridiculous * back to powershell I guess * more commands * this might work * adding more reliable miktex download * trying to download miktex * installing httr * fix error in MiKTeX script * remove comments * redirect output * redirect output * move linting back to Travis * change redirection * switch back to just mac and linux * put linting exclude back * renamed R_TRAVIS_LINUX * revert changes to non-R tasks and update events * simplify
- Loading branch information
1 parent
3d7fa7a
commit 0070bab
Showing
5 changed files
with
63 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
name: GitHub Actions | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
test: | ||
name: ${{ matrix.task }} (${{ matrix.os }}, ${{ matrix.compiler }}) | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- os: ubuntu-latest | ||
task: r-package | ||
compiler: gcc | ||
- os: ubuntu-latest | ||
task: r-package | ||
compiler: clang | ||
- os: macOS-latest | ||
task: r-package | ||
compiler: gcc | ||
- os: macOS-latest | ||
task: r-package | ||
compiler: clang | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v1 | ||
with: | ||
fetch-depth: 5 | ||
submodules: true | ||
- name: Setup and run tests on Linux and macOS | ||
if: matrix.os != 'windows-latest' | ||
shell: bash | ||
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 | ||
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) | ||
$GITHUB_WORKSPACE/.ci/setup.sh | ||
$GITHUB_WORKSPACE/.ci/test.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters