diff options
author | Sam Clegg <sbc@chromium.org> | 2020-08-17 06:29:47 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-17 06:29:47 -0700 |
commit | d198941ef4aac4f721be556e63d9b12a6c89f62d (patch) | |
tree | 20480af498267dc8c557ca6dd1e355ced1312d3d /.github/workflows | |
parent | 85154a1ea62a6c5d4fa698497543e2fe943e55e7 (diff) | |
download | binaryen-d198941ef4aac4f721be556e63d9b12a6c89f62d.tar.gz binaryen-d198941ef4aac4f721be556e63d9b12a6c89f62d.tar.bz2 binaryen-d198941ef4aac4f721be556e63d9b12a6c89f62d.zip |
Include full `install` in releases (#3052)
This means we will also include any headers or libraries that
are part of the `install` step.
Fixes: #3048
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/build_release.yml | 20 | ||||
-rw-r--r-- | .github/workflows/ci.yml | 4 |
2 files changed, 12 insertions, 12 deletions
diff --git a/.github/workflows/build_release.yml b/.github/workflows/build_release.yml index f3b72b9d3..dcc1908d8 100644 --- a/.github/workflows/build_release.yml +++ b/.github/workflows/build_release.yml @@ -24,7 +24,7 @@ jobs: with: submodules: true - - name: install ninja (osx) + - name: install ninja (macos) run: brew install ninja if: matrix.os == 'macos-latest' @@ -35,20 +35,20 @@ jobs: - name: mkdir run: mkdir -p out - - name: cmake (osx) - run: cmake -S . -B out -G Ninja -DCMAKE_BUILD_TYPE=Release + - name: cmake (macos) + run: cmake -S . -B out -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=out/install if: matrix.os == 'macos-latest' - name: cmake (win) # -G "Visual Studio 15 2017" - run: cmake -S . -B out + run: cmake -S . -B out -DCMAKE_INSTALL_PREFIX=out/install if: matrix.os == 'windows-latest' - name: build - run: cmake --build out --config Release + run: cmake --build out --config Release install - name: strip - run: find out/bin/ -type f -perm -u=x -exec strip -x {} + + run: find out/install/ -type f -perm -u=x -exec strip -x {} + if: matrix.os != 'windows-latest' - name: archive @@ -59,7 +59,7 @@ jobs: PKGNAME="binaryen-$VERSION-x86_64-$OSNAME" TARBALL=$PKGNAME.tar.gz SHASUM=$PKGNAME.tar.gz.sha256 - mv out/bin binaryen-$VERSION + mv out/install binaryen-$VERSION tar -czf $TARBALL binaryen-$VERSION echo "::set-output name=tarball::$TARBALL" echo "::set-output name=shasum::$SHASUM" @@ -115,7 +115,7 @@ jobs: - name: cmake run: | - ./alpine.sh cmake . -G Ninja -DCMAKE_CXX_FLAGS="-static" -DCMAKE_C_FLAGS="-static" -DCMAKE_BUILD_TYPE=Release -DBUILD_STATIC_LIB=ON + ./alpine.sh cmake . -G Ninja -DCMAKE_CXX_FLAGS="-static" -DCMAKE_C_FLAGS="-static" -DCMAKE_BUILD_TYPE=Release -DBUILD_STATIC_LIB=ON -DCMAKE_INSTALL_PREFIX=install - name: build run: | @@ -131,8 +131,8 @@ jobs: PKGNAME="binaryen-$VERSION-x86_64-linux" TARBALL=$PKGNAME.tar.gz SHASUM=$PKGNAME.tar.gz.sha256 - ./alpine.sh find bin/ -type f -perm -u=x -exec strip {} + - mv bin binaryen-$VERSION + ./alpine.sh find install/ -type f -perm -u=x -exec strip {} + + mv install binaryen-$VERSION tar -czf $TARBALL binaryen-$VERSION shasum -a 256 $TARBALL > $SHASUM echo "::set-output name=tarball::$TARBALL" diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6e84258f2..0c88255a5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -50,7 +50,7 @@ jobs: run: sudo apt-get install ninja-build if: matrix.os == 'ubuntu-latest' - - name: install ninja (osx) + - name: install ninja (macos) run: brew install ninja if: matrix.os == 'macos-latest' @@ -65,7 +65,7 @@ jobs: run: cmake -S . -B out -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=out/install if: matrix.os == 'ubuntu-latest' - - name: cmake (osx) + - name: cmake (macos) run: cmake -S . -B out -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=out/install if: matrix.os == 'macos-latest' |