diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2021-01-02 13:20:37 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2021-01-02 13:22:59 +0300 |
commit | 0f36cf818a31eaa7bd483a090ee04aac8e651b5d (patch) | |
tree | f7aa5a8a86c23cbd2af9654bdbd30867ea81989b | |
parent | refactoring (diff) | |
download | setup-gcc-0f36cf818a31eaa7bd483a090ee04aac8e651b5d.tar.gz setup-gcc-0f36cf818a31eaa7bd483a090ee04aac8e651b5d.zip |
code style
-rw-r--r-- | .github/workflows/test.yml | 8 | ||||
-rw-r--r-- | action.yml | 3 |
2 files changed, 6 insertions, 5 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2dcc535..59e4d1f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -62,11 +62,7 @@ jobs: if ('${{ matrix.platform }}' -eq 'x86') { $flags += '-m32' } - $flags += @( - '-std=c++14', - '-o', 'foo', - 'foo.cpp' - ) + $flags += '-std=c++14','-o','foo','foo.cpp' if ('${{ runner.os }}' -eq 'Linux') { $flags += '-lpthread' } @@ -79,8 +75,10 @@ jobs: Doing something #2 Doing something #3 "@ + $actual = & (Join-Path . foo) $actual = $actual -join [Environment]::NewLine + $($actual -eq $expected) -or $(throw @" Unexpected output: $actual @@ -89,6 +89,7 @@ runs: if ($linux_host) { $pkg = if ($x64) { 'g++' } else { 'g++-multilib' } Install-Package $pkg + Link-Exe -Exe gcc -LinkName cc Link-Exe -Exe g++ -LinkName c++ } elseif ($cygwin_host) { @@ -100,7 +101,9 @@ runs: If you _are_ using 32-bit Cygwin, you can ignore this message. '@ } + Install-Package gcc-g++ + Link-Exe -Exe gcc -LinkName cc Link-Exe -Exe g++ -LinkName c++ } elseif ($windows_host) { |