Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

chore: add action for old glibc version #5

Merged
merged 1 commit into from
Jan 29, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 58 additions & 0 deletions .github/workflows/release_old-glibc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: Release for glibc 2.17

on:
release:
types: [ published ]

jobs:
release:
name: Release
runs-on: ubuntu-latest
container: quay.io/pypa/manylinux2014_x86_64
steps:
- name: Print glibc version
run: ldd --version

- name: Checkout sources
uses: actions/checkout@v3

- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true

- name: Run cargo test
uses: actions-rs/cargo@v1
with:
command: test

- name: Run cargo build
uses: actions-rs/cargo@v1
with:
command: build
args: --release

- name: Create package
working-directory: ${{ runner.workspace }}/Arenta/
id: package
shell: bash
run: |
mkdir release
cp target/release/arenta release/
cp README.md release/
cp LICENSE release/
PACKAGE_NAME=arenta-${GITHUB_REF#refs/tags/}-ubuntu-latest-glibc-2.17.tar.gz
tar -czvf $PACKAGE_NAME -C release .
echo "name=${PACKAGE_NAME}" >> $GITHUB_OUTPUT

- name: Upload asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ${{ steps.package.outputs.name }}
asset_name: ${{ steps.package.outputs.name }}
asset_content_type: application/gzip