Release v0.12.0 #15
Workflow file for this run
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 makes a (draft) release and uploads build artifacts. | |
name: Make a release | |
on: | |
push: | |
tags: ['v*'] | |
jobs: | |
make_release: | |
name: Make release | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install native dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install libdbus-1-dev pkg-config libssl-dev \ | |
musl musl-dev musl-tools | |
- name: Create release | |
id: create_release | |
uses: actions/create-release@v1.0.0 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
tag_name: ${{ github.ref }} | |
release_name: Release ${{ github.ref }} | |
draft: true | |
prerelease: true | |
- name: Get stable toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
target: x86_64-unknown-linux-musl | |
override: true | |
- name: Make release tarball (default) | |
run: | | |
(cd crates/tiny && cargo build --release --verbose) | |
tar -C target/release -czvf tiny-ubuntu-22.04.tar.gz tiny | |
- name: Make release tarball (default, statically linked) | |
run: | | |
(cd crates/tiny && RUST_BACKTRACE=1 \ | |
cargo build --release --verbose --target=x86_64-unknown-linux-musl) | |
tar -C target/x86_64-unknown-linux-musl/release \ | |
-czvf tiny-ubuntu-22.04-static.tar.gz tiny | |
- name: Make release tarball (libssl) | |
run: | | |
(cd crates/tiny && cargo build --release --verbose \ | |
--no-default-features --features="tls-native") | |
tar -C target/release -czvf tiny-ubuntu-22.04-libssl.tar.gz tiny | |
- name: Make release tarball (libdbus) | |
run: | | |
(cd crates/tiny && cargo build --release --verbose \ | |
--no-default-features --features="tls-rustls desktop-notifications") | |
tar -C target/release -czvf tiny-ubuntu-22.04-dbus.tar.gz tiny | |
- name: Make release tarball (libssl + libdbus) | |
run: | | |
(cd crates/tiny && cargo build --release --verbose \ | |
--no-default-features --features="tls-native desktop-notifications") | |
tar -C target/release -czvf tiny-ubuntu-22.04-libssl-dbus.tar.gz tiny | |
- name: Upload executable (1/5) | |
uses: actions/upload-release-asset@v1.0.1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ steps.create_release.outputs.upload_url }} | |
asset_path: tiny-ubuntu-22.04.tar.gz | |
asset_name: tiny-ubuntu-22.04.tar.gz | |
asset_content_type: application/gzip | |
- name: Upload executable (2/5) | |
uses: actions/upload-release-asset@v1.0.1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ steps.create_release.outputs.upload_url }} | |
asset_path: tiny-ubuntu-22.04-static.tar.gz | |
asset_name: tiny-ubuntu-22.04-static.tar.gz | |
asset_content_type: application/gzip | |
- name: Upload executable (3/5) | |
uses: actions/upload-release-asset@v1.0.1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ steps.create_release.outputs.upload_url }} | |
asset_path: tiny-ubuntu-22.04-libssl.tar.gz | |
asset_name: tiny-ubuntu-22.04-libssl.tar.gz | |
asset_content_type: application/gzip | |
- name: Upload executable (4/5) | |
uses: actions/upload-release-asset@v1.0.1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ steps.create_release.outputs.upload_url }} | |
asset_path: tiny-ubuntu-22.04-dbus.tar.gz | |
asset_name: tiny-ubuntu-22.04-dbus.tar.gz | |
asset_content_type: application/gzip | |
- name: Upload executable (5/5) | |
uses: actions/upload-release-asset@v1.0.1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ steps.create_release.outputs.upload_url }} | |
asset_path: tiny-ubuntu-22.04-libssl-dbus.tar.gz | |
asset_name: tiny-ubuntu-22.04-libssl-dbus.tar.gz | |
asset_content_type: application/gzip |