Skip to content

Commit

Permalink
Merge pull request #5 from Gusabary/glibc-adapter
Browse files Browse the repository at this point in the history
chore: add action for old glibc version
  • Loading branch information
Gusabary authored Jan 29, 2023
2 parents e58124d + e723d6d commit 8adf5d0
Showing 1 changed file with 58 additions and 0 deletions.
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

0 comments on commit 8adf5d0

Please # to comment.