Skip to content

Commit

Permalink
More CI Fixes (#119)
Browse files Browse the repository at this point in the history
* ci: add separate job to run docker build script

so that it doesn't bitrot

* github ci: try turning windows back on?

* workflow: run make in bash (for windows)

* windows doesnt have sudo

* github ci: windows is still broken, will have to fix later

* deb build: in wrong directory to mv build/wasi-sdk...deb

* ci: make filenames of uploaded artifacts more clear

* fix typo in deb creation
  • Loading branch information
Pat Hickey committed Apr 8, 2020
1 parent 4051341 commit 6b453df
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 5 deletions.
28 changes: 25 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,16 @@ on:

jobs:
build:
name: Build
name: Native Build
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- macos-latest
# llvm 9 build is broken on windows for now. Re-enable this when it is fixed:
# Build still fails on windows - sysroot path passed to compiler-rt
# is incorrect.
# - windows-latest
steps:
- uses: actions/checkout@v1
Expand All @@ -35,12 +36,33 @@ jobs:
if: matrix.os == 'ubuntu-latest'
- name: Build
run: sudo make -j4 package
if: matrix.os != 'windows-latest'
- name: Build
run: make -j4 package
shell: bash
if: matrix.os == 'windows-latest'
- name: Run the testsuite
run: make check
if: matrix.os == 'ubuntu-latest'
- name: Upload artifacts
uses: actions/upload-artifact@v1
with:
# Upload the dist folder. Give it a name according to the OS it was built for.
name: ${{ format( 'dist-{0}.tgz', matrix.os) }}
name: ${{ format( 'dist-{0}', matrix.os) }}
path: dist

dockerbuild:
name: Docker Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
with:
submodules: true
- name: Run docker_build script
run: ./docker_build.sh
- name: Upload artifacts
uses: actions/upload-artifact@v1
with:
# Upload the dist folder. Give it a name according to the OS it was built for.
name: dist-debian-stretch
path: dist
4 changes: 2 additions & 2 deletions deb_from_installation.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ mkdir -p build/pkg/opt
mkdir -p build/pkg/DEBIAN
sed -e s/VERSION/$VERSION/ wasi-sdk.control > build/pkg/DEBIAN/control
cp -R /opt/wasi-sdk build/pkg/opt/
cd build && dpkg-deb -b pkg wasi-sdk_$VERSION\_amd64.deb
mv build/wasi-sdk_$VERSION\amd64.deb $OUTDIR/
cd build && dpkg-deb -b pkg wasi-sdk_$VERSION\_amd64.deb && cd ..
mv build/wasi-sdk_$VERSION\_amd64.deb $OUTDIR/

0 comments on commit 6b453df

Please sign in to comment.