Skip to content

Cleanup github actions. Replace actions-rs to other maintained actions. #40

Cleanup github actions. Replace actions-rs to other maintained actions.

Cleanup github actions. Replace actions-rs to other maintained actions. #40

name: Release x86_64 deb artifact that includes so file, a file and headers
on:
release:
types:
- published
jobs:
build_artifact:
runs-on: ubuntu-latest
outputs:
version: ${{ steps.versions.outputs.version }}
major-version: ${{ steps.versions.outputs.major-version }}
steps:
- name: Checkout
uses: actions/checkout@master
with:
ref: ${{ github.ref }}
- name: check version
id: versions
run: |
echo version=`bin/version.sh` >> ${GITHUB_OUTPUT}
echo major-version=`bin/major_version.sh` >> ${GITHUB_OUTPUT}
- name: Check tag matches version
run: test "refs/tags/v${{ steps.versions.outputs.version }}" = ${{ github.ref }}
- name: Check changelog includes version
run: |
grep -F "[${{ steps.versions.outputs.version }}]" CHANGELOG.md
- name: Install cargo
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: ${{ inputs.toolchain }}
rustflags: ""
override: true
- name: Install required rust tools
uses: .github/actions/install_required_cargo_bins
- name: Install required libs (Ubuntu)
run: sudo apt-get install libxkbcommon-dev
- name: Build library
run: cargo cbuild --release
- name: Build symbolic links
run: bin/generate_deb_symlinks.sh
- name: Install cargo-deb
run: cargo install cargo-deb --force
- name: Prepare deb file
run: cargo deb
- name: Upload release artifact
uses: softprops/action-gh-release@v1
with:
files: |
target/debian/libcskk_${{ steps.versions.outputs.version }}_amd64.deb