File tree Expand file tree Collapse file tree 2 files changed +11
-20
lines changed Expand file tree Collapse file tree 2 files changed +11
-20
lines changed Original file line number Diff line number Diff line change @@ -2,27 +2,18 @@ name: cctools prebuilt
2
2
on : workflow_dispatch
3
3
jobs :
4
4
build :
5
- name : cctools ${{matrix.version}} [${{matrix.arch}}-${{matrix.os}}]
5
+ name : cctools [${{matrix.arch}}-${{matrix.os}}]
6
6
runs-on : ${{matrix.runner}}
7
7
strategy :
8
8
fail-fast : false
9
9
matrix :
10
10
arch : [ x86_64 ]
11
- os : [ macos, linux ]
11
+ os : [ linux ]
12
12
13
13
include :
14
- - os : macos
15
- runner : macos-10.15
16
14
- os : linux
17
15
runner : ubuntu-18.04
18
16
steps :
19
- - name : Configure macOS runner
20
- if : runner.os == 'macOS'
21
- env :
22
- CMAKE_OSX_DEPLOYMENT_TARGET : " 10.12"
23
- run : |
24
- brew install git ninja
25
-
26
17
- name : Configure Linux runner
27
18
if : runner.os == 'Linux'
28
19
run : |
@@ -53,18 +44,18 @@ jobs:
53
44
run : |
54
45
git clone https://github.com/tpoechtrager/cctools-port.git
55
46
cd cctools-port/cctools
56
- ./configure --prefix=/tmp/cctools --with-libtapi=/tmp/cctools --with-libxar=/tmp/cctools --target=x86_64-apple-darwin11 --program-prefix=apple-
47
+ ./configure --prefix=/tmp/cctools --with-libtapi=/tmp/cctools --with-libxar=/tmp/cctools
57
48
make
58
49
make install
59
50
cd ../..
60
51
61
52
- name : Package cctools
62
53
run : |
63
- mv /tmp/cctools ./cctools-${{matrix.version}}-${{matrix. arch}}-${{matrix.os}}
64
- tar -cJf ctools -${{matrix.version}}-${{matrix. arch}}-${{matrix.os}}.tar.xz ctools-${{matrix.version}} -${{matrix.arch}}-${{matrix.os}}
54
+ mv /tmp/cctools ./cctools-${{matrix.arch}}-${{matrix.os}}
55
+ tar -cJf cctools -${{matrix.arch}}-${{matrix.os}}.tar.xz cctools -${{matrix.arch}}-${{matrix.os}}
65
56
66
57
- name : Upload cctools package
67
58
uses : actions/upload-artifact@v2
68
59
with :
69
- name : cctools-${{matrix.version}}-${{matrix. arch}}-${{matrix.os}}
70
- path : cctools-${{matrix.version}}-${{matrix. arch}}-${{matrix.os}}.tar.xz
60
+ name : cctools-${{matrix.arch}}-${{matrix.os}}
61
+ path : cctools-${{matrix.arch}}-${{matrix.os}}.tar.xz
Original file line number Diff line number Diff line change @@ -89,17 +89,17 @@ jobs:
89
89
- name : Package LLVM
90
90
if : runner.os != 'Windows'
91
91
run : |
92
- mv llvm-install clang+llvm
93
- tar -cJf clang+llvm. tar.xz clang+llvm
92
+ mv llvm-install clang+llvm-${{matrix.version}}-${{matrix.arch}}-${{matrix.os}}
93
+ tar -cJf clang+llvm-${{matrix.version}}-${{matrix.arch}}-${{matrix.os}}. tar.xz clang+llvm-${{matrix.version}}-${{matrix.arch}}-${{matrix.os}}
94
94
95
95
- name : Package LLVM
96
96
if : runner.os == 'Windows'
97
97
run : |
98
98
ren llvm-install clang+llvm
99
- cmd.exe /c "7z a -ttar -snl -so clang+llvm. tar clang+llvm/* | 7z a -si clang+llvm.tar.xz"
99
+ cmd.exe /c "7z a -ttar -snl -so clang+llvm-${{matrix.version}}-${{matrix.arch}}-${{matrix.os}}. tar clang+llvm-${{matrix.version}}-${{matrix.arch}}-${{matrix.os}} | 7z a -si clang+llvm-${{matrix.version}}-${{matrix.arch}}-${{matrix.os}} .tar.xz"
100
100
101
101
- name : Upload LLVM package
102
102
uses : actions/upload-artifact@v2
103
103
with :
104
104
name : clang+llvm-${{matrix.version}}-${{matrix.arch}}-${{matrix.os}}
105
- path : clang+llvm.tar.xz
105
+ path : clang+llvm-${{matrix.version}}-${{matrix.arch}}-${{matrix.os}} .tar.xz
You can’t perform that action at this time.
0 commit comments