Skip to content

Commit

Permalink
Compile on Ubuntu 20.04
Browse files Browse the repository at this point in the history
  • Loading branch information
jennydaman committed Nov 7, 2023
1 parent 42283c7 commit 998f6ea
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 4 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ jobs:
- { os: ubuntu-latest , target: powerpc64-unknown-linux-gnu , use-cross: use-cross }
- { os: ubuntu-latest , target: powerpc64le-unknown-linux-gnu , use-cross: use-cross }
- { os: ubuntu-latest , target: riscv64gc-unknown-linux-gnu , use-cross: use-cross }
- { os: ubuntu-latest , target: x86_64-unknown-linux-gnu , use-cross: use-cross, deb: deb }
- { os: ubuntu-latest , target: x86_64-unknown-linux-musl , use-cross: use-cross, convenient: true }
- { os: ubuntu-20.04 , target: x86_64-unknown-linux-gnu , deb: deb }
- { os: ubuntu-20.04 , target: x86_64-unknown-linux-musl , convenient: convenient }

- { os: macos-latest , target: x86_64-apple-darwin }
- { os: macos-latest , target: aarch64-apple-darwin }
Expand Down Expand Up @@ -160,6 +160,7 @@ jobs:
owner_part='${{ github.repository_owner }}/'
repo_name="${repo:${#owner_part}}"
bin_env_var_name="${repo_name^^}_BIN"
echo "repo_name=$repo_name" >> "$GITHUB_OUTPUT"
echo "bin_env_var_name=$bin_env_var_name" >> "$GITHUB_OUTPUT"
cat > release/installer.sh << EOF
Expand Down Expand Up @@ -224,6 +225,18 @@ jobs:
files: |
./release/*
body: |
## Choosing An Installer for Linux
The bare binary
[`${{ steps.create_script.outputs.repo_name }}`](${{ github.server_url }}/${{ github.repository }}/releases/download/${{ github.ref_name }}/${{ steps.create_script.outputs.repo_name }})
should work on all Linux distros. Download it, then run `chmod +x ./${{ steps.create_script.outputs.repo_name }}` as usual.
The `unknown-linux-gnu` target is preferable for GNU/Linux with glibc version 2.31 or above.
In simpler words: `unknown-linux-gnu` is recommended for Arch Linux, Ubuntu 20.04, Debian 11
(Bullseye), CentOS 9, RHEL 9, or newer. Older systems should download the `unknown-linux-musl` variant.
## Installation Script
A script is provided for downloading and installing the binary.
Install for all users (requires `sudo`):
Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "mni2mz3"
version = "1.0.0-rc.3"
version = "1.0.0-rc.4"
edition = "2021"

authors = ["Jennings Zhang <[email protected]>"]
Expand Down

0 comments on commit 998f6ea

Please sign in to comment.