-
-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
See the changelog for details.
- Loading branch information
Showing
42 changed files
with
8,919 additions
and
267 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,145 @@ | ||
name: Development release | ||
on: | ||
push: | ||
tags: | ||
- 'dev' | ||
jobs: | ||
release-linux: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
name: Release (Linux) | ||
steps: | ||
- uses: actions/checkout@v2 | ||
name: Checkout Austin | ||
|
||
- name: Generate artifacts | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get -y install autoconf build-essential libunwind-dev musl-tools | ||
# Build austin | ||
autoreconf --install | ||
./configure | ||
make | ||
# Compute dev version | ||
export PREV_VERSION=$(cat src/austin.h | sed -r -n "s/.*VERSION[ ]+\"(.+)\"/\1/p") | ||
export VERSION=$(echo $PREV_VERSION | awk -F. '{A=NF-1; $A = $A + 1; $NF=0} 1' | sed 's/ /./g')-dev+$(git rev-parse --short HEAD) | ||
sed -i "s/$PREV_VERSION/$VERSION/g" src/austin.h | ||
# Build austinp | ||
gcc -O3 -Os -s -Wall -pthread src/*.c -o src/austinp -DAUSTINP -l:libunwind-ptrace.a -l:liblzma.a -l:libunwind-generic.a -l:libunwind.a | ||
pushd src | ||
tar -Jcf austin-$VERSION-gnu-linux-amd64.tar.xz austin | ||
tar -Jcf austinp-$VERSION-gnu-linux-amd64.tar.xz austinp | ||
popd | ||
# Build with musl | ||
musl-gcc -O3 -Os -s -Wall -pthread src/*.c -o src/austin -D__MUSL__ | ||
pushd src | ||
tar -Jcf austin-$VERSION-musl-linux-amd64.tar.xz austin | ||
popd | ||
- name: Upload artifacts to release | ||
uses: svenstaro/upload-release-action@v2 | ||
with: | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
file: src/austin*xz | ||
tag: ${{ github.ref }} | ||
overwrite: true | ||
prerelease: true | ||
release_name: Development build | ||
file_glob: true | ||
|
||
release-win: | ||
runs-on: windows-latest | ||
strategy: | ||
fail-fast: false | ||
name: Release (Windows) | ||
steps: | ||
- uses: actions/checkout@v2 | ||
name: Checkout Austin | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Generate artifacts | ||
shell: bash | ||
run: | | ||
echo "C:\Program Files (x86)\WiX Toolset v3.11\bin" >> $GITHUB_PATH | ||
export PATH="/c/Program Files (x86)/`ls /c/Program\ Files\ \(x86\) | grep \"[wW]i[xX] [tT]oolset\"`/bin:$PATH" | ||
# Compute dev version | ||
export PREV_VERSION=$(cat src/austin.h | sed -r -n "s/.*VERSION[ ]+\"(.+)\"/\1/p") | ||
export VERSION=$(echo $PREV_VERSION | awk -F. '{A=NF-1; $A = $A + 1; $NF=0} 1' | sed 's/ /./g') | ||
export VERSION_DEV=$(echo $PREV_VERSION | awk -F. '{A=NF-1; $A = $A + 1; $NF=0} 1' | sed 's/ /./g')-dev+$(git rev-parse --short HEAD) | ||
sed -i "s/$PREV_VERSION/$VERSION/g" src/austin.h | ||
gcc -s -Wall -O3 -Os -o src/austin src/*.c -lpsapi -lntdll | ||
git checkout HEAD -- src/austin.h | ||
git checkout "packaging/msi" | ||
git checkout master | ||
git checkout "packaging/msi" -- wix | ||
export WIN_MSI="austin-$VERSION_DEV-win64.msi" | ||
sed -i "s/%VERSION%/$VERSION/g" wix/Austin.wxs | ||
pushd wix | ||
candle Austin.wxs -out Austin.wixobj | ||
light -ext WixUIExtension Austin.wixobj -out $WIN_MSI | ||
popd | ||
mv wix/$WIN_MSI src/$WIN_MSI; | ||
test -f src/$WIN_MSI && echo ">> Windows MSI installer at src/$WIN_MSI" || echo ">> ERROR No Windows MSI installer generated." | ||
pushd src | ||
7z a -tzip austin-${VERSION_DEV}-win64.zip austin.exe | ||
popd | ||
- name: Upload artifacts to release | ||
uses: svenstaro/upload-release-action@v2 | ||
with: | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
file: src/austin-* | ||
tag: ${{ github.ref }} | ||
overwrite: true | ||
prerelease: true | ||
release_name: Development build | ||
file_glob: true | ||
|
||
release-osx: | ||
runs-on: macos-latest | ||
strategy: | ||
fail-fast: false | ||
name: Release (macOS) | ||
steps: | ||
- uses: actions/checkout@v2 | ||
name: Checkout Austin | ||
|
||
- name: Generate artifacts | ||
run: | | ||
# Compute dev version | ||
export PREV_VERSION=$(cat src/austin.h | sed -n -E "s/.*VERSION[ ]+\"(.+)\"/\1/p") | ||
export VERSION=$(echo $PREV_VERSION | awk -F. '{A=NF-1; $A = $A + 1; $NF=0} 1' | sed 's/ /./g')-dev+$(git rev-parse --short HEAD) | ||
sed -i "" "s/$PREV_VERSION/$VERSION/g" src/austin.h | ||
echo "::set-output name=version::$VERSION" | ||
gcc -Wall -O3 -Os -o src/austin src/*.c | ||
pushd src | ||
zip -r austin-${VERSION}-mac64.zip austin | ||
popd | ||
- name: Upload artifacts to release | ||
uses: svenstaro/upload-release-action@v2 | ||
with: | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
file: src/austin-* | ||
tag: ${{ github.ref }} | ||
overwrite: true | ||
prerelease: true | ||
release_name: Development build | ||
file_glob: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
name: Development release (Linux archs) | ||
on: | ||
push: | ||
tags: | ||
- 'dev' | ||
jobs: | ||
release-linux-archs: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
arch: ["armv7", "aarch64", "ppc64le"] | ||
fail-fast: false | ||
name: Build on ${{ matrix.arch }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
name: Checkout sources | ||
- uses: uraimo/run-on-arch-action@v2.0.5 | ||
name: Generate artifacts on ${{ matrix.arch }} | ||
id: run-tests-on-arch | ||
with: | ||
arch: ${{ matrix.arch }} | ||
distro: ubuntu20.04 | ||
githubToken: ${{ github.token }} | ||
dockerRunArgs: --volume "${GITHUB_WORKSPACE}/artifacts:/artifacts" | ||
setup: | | ||
mkdir -p ./artifacts | ||
# Compute dev version | ||
export PREV_VERSION=$(cat src/austin.h | sed -r -n "s/.*VERSION[ ]+\"(.+)\"/\1/p") | ||
export VERSION=$(echo $PREV_VERSION | awk -F. '{A=NF-1; $A = $A + 1; $NF=0} 1' | sed 's/ /./g')-dev+$(git rev-parse --short HEAD) | ||
sed -i "s/$PREV_VERSION/$VERSION/g" src/austin.h | ||
run: | | ||
apt-get update | ||
apt-get -y install autoconf build-essential libunwind-dev musl-tools | ||
# Build austin | ||
autoreconf --install | ||
./configure | ||
make | ||
export VERSION=$(cat src/austin.h | sed -r -n "s/.*VERSION[ ]+\"(.+)\"/\1/p") | ||
# Build austinp | ||
gcc -O3 -Os -s -Wall -pthread src/*.c -o src/austinp -DAUSTINP -l:libunwind-ptrace.a -l:liblzma.a -l:libunwind-generic.a -l:libunwind.a | ||
pushd src | ||
tar -Jcf austin-$VERSION-gnu-linux-${{ matrix.arch }}.tar.xz austin | ||
tar -Jcf austinp-$VERSION-gnu-linux-${{ matrix.arch }}.tar.xz austinp | ||
musl-gcc -O3 -Os -s -Wall -pthread *.c -o austin -D__MUSL__ | ||
tar -Jcf austin-$VERSION-musl-linux-${{ matrix.arch }}.tar.xz austin | ||
mv austin-$VERSION-gnu-linux-${{ matrix.arch }}.tar.xz /artifacts | ||
mv austinp-$VERSION-gnu-linux-${{ matrix.arch }}.tar.xz /artifacts | ||
mv austin-$VERSION-musl-linux-${{ matrix.arch }}.tar.xz /artifacts | ||
popd | ||
- name: Show artifacts | ||
run: | | ||
ls -al ./artifacts | ||
- name: Upload binaries to release | ||
uses: svenstaro/upload-release-action@v2 | ||
with: | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
file: artifacts/austin* | ||
tag: ${{ github.ref }} | ||
overwrite: true | ||
prerelease: true | ||
release_name: Development build | ||
file_glob: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,6 +36,7 @@ stamp-h1 | |
*.gcda | ||
|
||
src/austin | ||
src/austinp | ||
src/austin.exe | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.