mirror of
https://github.com/actions/setup-dotnet.git
synced 2024-11-26 13:23:05 +07:00
commit
d41fb1f9ff
2
.github/workflows/workflow.yml
vendored
2
.github/workflows/workflow.yml
vendored
@ -6,7 +6,7 @@ jobs:
|
|||||||
runs-on: ${{ matrix.operating-system }}
|
runs-on: ${{ matrix.operating-system }}
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
operating-system: [ubuntu-latest, windows-latest]
|
operating-system: [ubuntu-latest, windows-latest, macOS-latest]
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@master
|
uses: actions/checkout@master
|
||||||
|
4
externals/get-os-distro.sh
vendored
4
externals/get-os-distro.sh
vendored
@ -113,7 +113,7 @@ get_current_os_name() {
|
|||||||
|
|
||||||
local uname=$(uname)
|
local uname=$(uname)
|
||||||
if [ "$uname" = "Darwin" ]; then
|
if [ "$uname" = "Darwin" ]; then
|
||||||
echo "mac"
|
echo "osx"
|
||||||
return 0
|
return 0
|
||||||
elif [ "$uname" = "Linux" ]; then
|
elif [ "$uname" = "Linux" ]; then
|
||||||
local linux_platform_name
|
local linux_platform_name
|
||||||
@ -139,7 +139,7 @@ get_legacy_os_name() {
|
|||||||
|
|
||||||
local uname=$(uname)
|
local uname=$(uname)
|
||||||
if [ "$uname" = "Darwin" ]; then
|
if [ "$uname" = "Darwin" ]; then
|
||||||
echo "mac"
|
echo "osx"
|
||||||
return 0
|
return 0
|
||||||
else
|
else
|
||||||
if [ -e /etc/os-release ]; then
|
if [ -e /etc/os-release ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user