File tree Expand file tree Collapse file tree 3 files changed +15
-7
lines changed Expand file tree Collapse file tree 3 files changed +15
-7
lines changed Original file line number Diff line number Diff line change 12
12
name : Test setup-foreman action
13
13
strategy :
14
14
matrix :
15
- os : ["ubuntu-latest ", "windows-latest", "macos-latest"]
15
+ os : ["ubuntu-22.04 ", "windows-latest", "macos-latest"]
16
16
17
17
runs-on : ${{ matrix.os }}
18
18
steps :
38
38
name : Test setup-foreman action with working-directory
39
39
strategy :
40
40
matrix :
41
- os : ["ubuntu-latest ", "windows-latest", "macos-latest"]
41
+ os : ["ubuntu-22.04 ", "windows-latest", "macos-latest"]
42
42
runs-on : ${{ matrix.os }}
43
43
steps :
44
44
- uses : actions/checkout@v3
62
62
name : Test allow-external-gitub-org false expect failure
63
63
strategy :
64
64
matrix :
65
- os : ["ubuntu-latest "]
65
+ os : ["ubuntu-22.04 "]
66
66
runs-on : ${{ matrix.os }}
67
67
steps :
68
68
- uses : actions/checkout@v3
94
94
name : Test allow-external-gitub-org false expect success
95
95
strategy :
96
96
matrix :
97
- os : ["ubuntu-latest "]
97
+ os : ["ubuntu-22.04 "]
98
98
runs-on : ${{ matrix.os }}
99
99
steps :
100
100
- uses : actions/checkout@v3
Original file line number Diff line number Diff line change 1
1
# This file is used as a way to make sure that setup-foreman is functioning.
2
2
3
3
[tools ]
4
- rojo = { source = " Roblox/rojo" , version = " 0. 6.0-alpha.1 " }
4
+ rojo = { source = " Roblox/rojo" , version = " 6.0.0 " }
5
5
selene = { source = " Kampfkarren/selene" , version = " 0.15.0" }
Original file line number Diff line number Diff line change @@ -48,14 +48,14 @@ function chooseRelease(
48
48
49
49
function chooseAsset ( release : GitHubRelease ) : GitHubAsset | null {
50
50
let platformMatcher : ( name : string ) => boolean ;
51
+ const arch = os . arch ( ) ;
51
52
52
53
if ( process . platform === "win32" ) {
53
54
platformMatcher = name =>
54
55
name . includes ( "windows" ) ||
55
56
name . includes ( "win64" ) ||
56
57
name . includes ( "win32" ) ;
57
58
} else if ( process . platform === "darwin" ) {
58
- const arch = os . arch ( ) ;
59
59
if ( arch === "x64" ) {
60
60
if ( release . tag_name >= "v1.0.5" ) {
61
61
platformMatcher = name => name . includes ( "macos-x86_64" ) ;
@@ -66,7 +66,15 @@ function chooseAsset(release: GitHubRelease): GitHubAsset | null {
66
66
platformMatcher = name => name . includes ( "macos-arm64" ) ;
67
67
}
68
68
} else if ( process . platform === "linux" ) {
69
- platformMatcher = name => name . includes ( "linux" ) ;
69
+ if ( arch === "x64" ) {
70
+ if ( release . tag_name >= "v1.6.4" ) {
71
+ platformMatcher = name => name . includes ( "linux-x86_64" ) ;
72
+ } else {
73
+ platformMatcher = name => name . includes ( "linux" ) ;
74
+ }
75
+ } else {
76
+ platformMatcher = name => name . includes ( "linux-arm64" ) ;
77
+ }
70
78
} else {
71
79
throw new Error ( `Unsupported platform "${ process . platform } "` ) ;
72
80
}
You can’t perform that action at this time.
0 commit comments