File tree 4 files changed +28
-11
lines changed
4 files changed +28
-11
lines changed Original file line number Diff line number Diff line change 40
40
- run : sudo make -j4 package
41
41
shell : bash
42
42
name : Build
43
+ - uses : actions/upload-artifact@v1
44
+ with :
45
+ name : ${{ format( 'packages-{0}.tgz', matrix.os) }}
46
+ path : dist
Original file line number Diff line number Diff line change @@ -149,11 +149,11 @@ build: build/llvm.BUILT build/wasi-libc.BUILT build/compiler-rt.BUILT build/libc
149
149
strip : build/llvm.BUILT
150
150
cd $(PREFIX ) /bin; strip clang-9 lld llvm-ar
151
151
152
- package : build/package.BUILT
152
+ package : dist
153
153
154
- build/package.BUILT : build strip
155
- command -v dpkg-deb > /dev/null && ./deb_from_installation.sh || true
156
- ./tar_from_installation .sh
157
- touch build/package.BUILT
154
+ dist : build strip
155
+ mkdir -p dist
156
+ command -v dpkg-deb > /dev/null && ./deb_from_installation .sh $( shell pwd) /dist || true
157
+ ./tar_from_installation.sh $( shell pwd) /dist
158
158
159
159
.PHONY : default clean build strip package
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env sh
2
2
set -ex
3
3
if [ -n " $1 " ]; then
4
- export VERSION= " $1 "
4
+ OUTDIR= $1
5
5
else
6
- export VERSION=` ./version.sh`
6
+ OUTDIR=$PWD /build
7
+ fi
8
+
9
+ if [ -n " $2 " ]; then
10
+ VERSION=" $2 "
11
+ else
12
+ VERSION=` ./version.sh`
7
13
fi
8
14
9
15
rm -rf build/pkg
@@ -12,3 +18,4 @@ mkdir -p build/pkg/DEBIAN
12
18
sed -e s/VERSION/$VERSION / wasi-sdk.control > build/pkg/DEBIAN/control
13
19
cp -R /opt/wasi-sdk build/pkg/opt/
14
20
cd build && dpkg-deb -b pkg wasi-sdk_$VERSION \_ amd64.deb
21
+ mv build/wasi-sdk_$VERSION \a md64.deb $OUTDIR /
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
set -ex
3
3
if [ -n " $1 " ]; then
4
- VERSION=" $1 "
4
+ OUTDIR=$1
5
+ else
6
+ OUTDIR=$PWD /build
7
+ fi
8
+
9
+ if [ -n " $2 " ]; then
10
+ VERSION=" $2 "
5
11
else
6
12
VERSION=` ./version.sh`
7
13
fi
19
25
rm -rf $PKGDIR
20
26
cp -R /opt/wasi-sdk $PKGDIR
21
27
cd build
22
- tar czf wasi-sdk-$VERSION \- $MACHINE .tar.gz wasi-sdk-$VERSION
28
+ tar czf $OUTDIR / wasi-sdk-$VERSION \- $MACHINE .tar.gz wasi-sdk-$VERSION
23
29
24
30
# As well as the full SDK package, also create archives of libclang_rt.builtins
25
31
# and the sysroot. These are made available for users who have an existing clang
26
32
# installation.
27
- tar czf libclang_rt.builtins-wasm32-wasi-$VERSION .tar.gz -C compiler-rt lib/wasi
28
- tar czf wasi-sysroot-$VERSION .tar.gz -C wasi-sdk-$VERSION /share wasi-sysroot
33
+ tar czf $OUTDIR / libclang_rt.builtins-wasm32-wasi-$VERSION .tar.gz -C compiler-rt lib/wasi
34
+ tar czf $OUTDIR / wasi-sysroot-$VERSION .tar.gz -C wasi-sdk-$VERSION /share wasi-sysroot
You can’t perform that action at this time.
0 commit comments