forked from osa1/tiny
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Update Ubuntu from 20.04 to 22.04. - Test statically linked builds in PRs to make sure we don't break the build when updating dependencies.
- Loading branch information
Showing
2 changed files
with
69 additions
and
21 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
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 |
---|---|---|
|
@@ -9,7 +9,7 @@ on: | |
jobs: | ||
make_release: | ||
name: Make release | ||
runs-on: ubuntu-20.04 | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
|
@@ -40,43 +40,41 @@ jobs: | |
- name: Make release tarball (default) | ||
run: | | ||
(cd crates/tiny && cargo build --release --verbose) | ||
tar -C target/release -czvf tiny-ubuntu-20.04.tar.gz tiny | ||
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-20.04-static.tar.gz tiny | ||
-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-20.04-libssl.tar.gz tiny | ||
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-20.04-dbus.tar.gz tiny | ||
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-20.04-libssl-dbus.tar.gz tiny | ||
# TODO: Can I not do this in one step? | ||
tar -C target/release -czvf tiny-ubuntu-22.04-libssl-dbus.tar.gz tiny | ||
- name: Upload executable (1/5) | ||
uses: actions/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
asset_path: tiny-ubuntu-20.04.tar.gz | ||
asset_name: tiny-ubuntu-20.04.tar.gz | ||
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) | ||
|
@@ -85,8 +83,8 @@ jobs: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
asset_path: tiny-ubuntu-20.04-static.tar.gz | ||
asset_name: tiny-ubuntu-20.04-static.tar.gz | ||
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) | ||
|
@@ -95,8 +93,8 @@ jobs: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
asset_path: tiny-ubuntu-20.04-libssl.tar.gz | ||
asset_name: tiny-ubuntu-20.04-libssl.tar.gz | ||
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) | ||
|
@@ -105,8 +103,8 @@ jobs: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
asset_path: tiny-ubuntu-20.04-dbus.tar.gz | ||
asset_name: tiny-ubuntu-20.04-dbus.tar.gz | ||
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) | ||
|
@@ -115,6 +113,6 @@ jobs: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
asset_path: tiny-ubuntu-20.04-libssl-dbus.tar.gz | ||
asset_name: tiny-ubuntu-20.04-libssl-dbus.tar.gz | ||
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 |