Merge branch 'flameshow' -- replace tfg with flameshow #112
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
--- | |
name: pre-release | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
pre-release: | |
name: Pre Release | |
runs-on: ubuntu-20.04 | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: true | |
# To fetch tags, but can this be improved using blobless checkout? | |
# [1]. But anyway right it is not important, and unlikely will be, | |
# since the repository is small. | |
# | |
# [1]: https://github.blog/2020-12-21-get-up-to-speed-with-partial-clone-and-shallow-clone/ | |
fetch-depth: 0 | |
- uses: Swatinem/rust-cache@v2 | |
with: | |
cache-on-failure: true | |
- name: Install dependencies | |
run: | | |
pip install PyOxidizer | |
# nfpm | |
curl -sS -Lo /tmp/nfpm.deb "https://github.com/goreleaser/nfpm/releases/download/v2.25.0/nfpm_amd64.deb" | |
sudo dpkg -i /tmp/nfpm.deb | |
- name: Build | |
run: | | |
set -x | |
# for building cityhash for clickhouse-rs | |
sudo apt-get install -y musl-tools | |
# gcc cannot do cross compile, and there is no musl-g++ in musl-tools | |
sudo ln -srf /usr/bin/clang /usr/bin/musl-g++ | |
# musl for static binaries | |
rustup target add x86_64-unknown-linux-musl | |
make packages target=x86_64-unknown-linux-musl | |
for postfix in .x86_64.rpm -x86_64.pkg.tar.zst _amd64.deb; do | |
cp chdig*$postfix chdig-latest$postfix | |
done | |
- name: Check package | |
run: | | |
sudo dpkg -i *.deb | |
chdig --help | |
- uses: "marvinpinto/action-automatic-releases@latest" | |
with: | |
repo_token: "${{ secrets.GITHUB_TOKEN }}" | |
automatic_release_tag: "latest" | |
prerelease: true | |
title: "Development Build" | |
files: | | |
*.deb | |
*.rpm | |
*.tar.* |