Skip to content

Commit

Permalink
please work
Browse files Browse the repository at this point in the history
  • Loading branch information
jameslamb committed May 26, 2020
1 parent 19fc5ab commit 85df137
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
2 changes: 0 additions & 2 deletions .ci/test_r_package_windows.ps1
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
$ErrorActionPreference = 'Continue'

# Download a file and retry upon failure. This looks like
# an infinite loop but CI-level timeouts will kill it
function Download-File-With-Retries {
Expand Down
2 changes: 0 additions & 2 deletions .ci/test_windows.ps1
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
$ErrorActionPreference = 'Continue'

function Check-Output {
param( [bool]$success )
if (!$success) {
Expand Down
14 changes: 11 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,19 @@ jobs:
run: conda init powershell
- name: Setup and run tests on Windows
if: matrix.os == 'windows-latest'
shell: cmd
shell: pwsh
env:
COMPILER: "${{ matrix.compiler }}"
GITHUB_ACTIONS: "true"
TASK: "${{ matrix.task }}"
run: |
set BUILD_SOURCESDIRECTORY=%GITHUB_WORKSPACE%
powershell.exe -ExecutionPolicy Bypass -File %GITHUB_WORKSPACE%\.ci\test_windows.ps1
$env:BUILD_SOURCESDIRECTORY = $env:GITHUB_WORKSPACE
Invoke-Expression -Command "$env:GITHUB_WORKSPACE\.ci\test_windows.ps1"
# set BUILD_SOURCESDIRECTORY=%GITHUB_WORKSPACE%
# powershell.exe -ExecutionPolicy Bypass -File %GITHUB_WORKSPACE%\.ci\test_windows.ps1

# possible links
# * https://github.com/PowerShell/PowerShell/issues/4002
# * https://github.com/PowerShell/PowerShell/issues/3996
# * https://www.activestate.com/blog/optimizing-ci-cd-pipelines-in-github-actions/

0 comments on commit 85df137

Please sign in to comment.