File tree Expand file tree Collapse file tree 4 files changed +27
-8
lines changed Expand file tree Collapse file tree 4 files changed +27
-8
lines changed Original file line number Diff line number Diff line change 4040 - run : sudo make -j4 package
4141 shell : bash
4242 name : Build
43+ - uses : actions/upload-artifact@v1
44+ with :
45+ # Upload the dist folder. Give it a name according to the OS it was built for.
46+ name : ${{ format( 'dist-{0}.tgz', matrix.os) }}
47+ path : dist
Original file line number Diff line number Diff line change @@ -152,8 +152,9 @@ strip: build/llvm.BUILT
152152package : build/package.BUILT
153153
154154build/package.BUILT : build strip
155- command -v dpkg-deb > /dev/null && ./deb_from_installation.sh || true
156- ./tar_from_installation.sh
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
157158 touch build/package.BUILT
158159
159160.PHONY : default clean build strip package
Original file line number Diff line number Diff line change 11#! /usr/bin/env sh
22set -ex
33if [ -n " $1 " ]; then
4- export VERSION= " $1 "
4+ OUTDIR= $1
55else
6- export VERSION=` ./version.sh`
6+ OUTDIR=$PWD /dist
7+ fi
8+
9+ if [ -n " $2 " ]; then
10+ VERSION=" $2 "
11+ else
12+ VERSION=` ./version.sh`
713fi
814
915rm -rf build/pkg
@@ -12,3 +18,4 @@ mkdir -p build/pkg/DEBIAN
1218sed -e s/VERSION/$VERSION / wasi-sdk.control > build/pkg/DEBIAN/control
1319cp -R /opt/wasi-sdk build/pkg/opt/
1420cd 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 11#! /usr/bin/env bash
22set -ex
33if [ -n " $1 " ]; then
4- VERSION=" $1 "
4+ OUTDIR=$1
5+ else
6+ OUTDIR=$PWD /dist
7+ fi
8+
9+ if [ -n " $2 " ]; then
10+ VERSION=" $2 "
511else
612 VERSION=` ./version.sh`
713fi
1925rm -rf $PKGDIR
2026cp -R /opt/wasi-sdk $PKGDIR
2127cd 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
2329
2430# As well as the full SDK package, also create archives of libclang_rt.builtins
2531# and the sysroot. These are made available for users who have an existing clang
2632# 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