Skip to content

Commit

Permalink
Update release-binaries.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Ionizing committed Jul 2, 2022
1 parent 1ae47ac commit 41a8ccc
Showing 1 changed file with 15 additions and 13 deletions.
28 changes: 15 additions & 13 deletions .github/workflows/release-binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,29 +39,31 @@ jobs:
asset_content_type: application/zip

linux-x86_64:
runs-on: ubuntu-latest
runs-on: ubuntu-18.04
container: centos:7
steps:
- uses: actions/checkout@v1

- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
default: true

- name: Build binary
uses: actions-rs/cargo@v1
with:
command: build
args: --release
use-cross: true
- name: Install Rust
run: |
yum install -y gcc g++ which
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | bash -s -- -y --target x86_64-unknown-linux-musl x86_64-unknown-linux-gnu
echo $HOME/.cargo/bin >> $GITHUB_PATH
source $HOME/.cargo/env
which rustup
which cargo
- name: Build
run: |
cargo build --verbose --release
- name: Optimize and package binary
run: |
cd target/release
strip rsgrad
chmod +x rsgrad
tar -c rsgrad | gzip > rsgrad.tar.gz
- name: Upload binary
uses: actions/upload-release-asset@v1
env:
Expand Down

0 comments on commit 41a8ccc

Please sign in to comment.