50
50
strategy :
51
51
fail-fast : false
52
52
matrix :
53
- os : [ ubuntu-18.04, ubuntu-20.04, macos-latest , windows-latest ]
53
+ os : [ ubuntu-18.04, ubuntu-20.04, macos-10.15 , windows-2019 ]
54
54
runs-on : ${{ matrix.os }}
55
55
steps :
56
56
- uses : actions/download-artifact@v1
62
62
run : |
63
63
upload_url=$(cat info/upload_url)
64
64
echo "::set-output name=upload_url::$upload_url"
65
+ - name : Set platform
66
+ id : platform
67
+ shell : bash
68
+ run : |
69
+ platform=${{ matrix.os }}
70
+ platform=${platform/macos-*/macos-latest}
71
+ platform=${platform/windows-*/windows-latest}
72
+ echo "::set-output name=platform::$platform"
65
73
66
74
# Build
67
75
- uses : actions/checkout@v2
@@ -104,7 +112,7 @@ jobs:
104
112
# Create ruby.bat, so 'ruby' works in pwsh
105
113
echo -en "@ECHO OFF\r\n@\"%~dp0jruby.exe\" %*\r\n" > ruby.bat
106
114
- name : Create archive
107
- run : tar czf jruby-head-${{ matrix.os }}.tar.gz jruby-head
115
+ run : tar czf jruby-head-${{ steps.platform.outputs.platform }}.tar.gz jruby-head
108
116
109
117
# Test
110
118
- run : echo "$PWD/jruby-head/bin" >> $GITHUB_PATH
@@ -123,8 +131,8 @@ jobs:
123
131
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
124
132
with :
125
133
upload_url : ${{ steps.upload_info.outputs.upload_url }}
126
- asset_path : jruby-head-${{ matrix.os }}.tar.gz
127
- asset_name : jruby-head-${{ matrix.os }}.tar.gz
134
+ asset_path : jruby-head-${{ steps.platform.outputs.platform }}.tar.gz
135
+ asset_name : jruby-head-${{ steps.platform.outputs.platform }}.tar.gz
128
136
asset_content_type : application/gzip
129
137
130
138
metadata :
0 commit comments