Skip to content

Bump rustix from 0.37.22 to 0.37.25 #130

Bump rustix from 0.37.22 to 0.37.25

Bump rustix from 0.37.22 to 0.37.25 #130

Workflow file for this run

name: Rust
on:
push:
branches: [ "master" ]
tags: [ "v*" ]
pull_request:
branches: [ "master" ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: sudo apt install -y libsoapysdr-dev
- name: Build
run: cargo build --verbose --release
- name: Version
run: echo "::set-output name=version::$(cargo run -- --version)"
- name: Run tests
run: cargo test --verbose
- name: Build Debian package
run: ./build_deb_package.sh
- uses: actions/upload-artifact@v3
with:
name: xng-debian-package-latest
path: |
./build/*.deb
release:
runs-on: ubuntu-latest
needs: build
if: startsWith(github.ref, 'refs/tags/v')
steps:
- name: Get version
id: version
run: echo "version=$(cat ${{ github.workspace }}/build/version)" >> $GITHUB_STATE
- name: Create release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false
- name: Download artifact from previous job
uses: actions/download-artifact@v2
with:
name: xng-debian-package-latest
path: ${{ github.workspace }}/build
- name: List assets
run: |
ls -la ${{ github.workspace }}/build
- name: Upload Debian package
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ${{ github.workspace }}/build/*.deb
asset_name: xng_${{ steps.version.outputs.version }}_amd64.deb
asset_content_type: application/x-deb