Bump serde_json from 1.0.113 to 1.0.114 #48
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Rust | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Build | |
run: cargo build --bin gpt_for_uds --verbose --release | |
- name: Build test client | |
run: cargo build --bin gpt_for_uds_client --verbose --release | |
- name: Prepare Debian Package | |
run: | | |
chmod 755 debian/postinst | |
chmod 755 debian/prerm | |
chmod 755 debian/postrm | |
chmod 755 debian/preinst | |
- name: Build Debian Package | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y debhelper devscripts | |
debuild -us -uc -b | |
cp ../gpt-for-uds*.deb gpt-for-uds.deb | |
- name: Upload Debian Package | |
uses: actions/upload-artifact@v3 | |
with: | |
name: gpt-for-uds | |
path: gpt-for-uds.deb | |
- name: Upload Binary Executable | |
uses: actions/upload-artifact@v3 | |
with: | |
name: gpt-for-uds | |
path: target/release/gpt_for_uds | |
- name: Upload Binary Client Executable | |
uses: actions/upload-artifact@v3 | |
with: | |
name: gpt-for-uds-client | |
path: target/release/gpt_for_uds_client | |
- name: Get the current timestamp | |
id: timestamp | |
run: echo "::set-output name=timestamp::$(date +'%Y%m%d%H%M%S')" | |
- name: Create Release | |
if: github.event_name == 'push' && github.ref == 'refs/heads/master' | |
id: create_release | |
uses: actions/create-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
tag_name: ${{ steps.timestamp.outputs.timestamp }} | |
release_name: Release-${{ steps.timestamp.outputs.timestamp }} | |
draft: false | |
prerelease: false | |
- name: Upload Debian Package to Release | |
if: github.event_name == 'push' && github.ref == 'refs/heads/master' | |
uses: actions/upload-release-asset@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ steps.create_release.outputs.upload_url }} | |
asset_path: ./gpt-for-uds.deb | |
asset_name: gpt-for-uds-${{ steps.timestamp.outputs.timestamp }}.deb | |
asset_content_type: application/vnd.debian.binary-package | |
- name: Upload Native Executable to Release | |
if: github.event_name == 'push' && github.ref == 'refs/heads/master' | |
uses: actions/upload-release-asset@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ steps.create_release.outputs.upload_url }} | |
asset_path: ./target/release/gpt_for_uds | |
asset_name: gpt-for-uds-${{ steps.timestamp.outputs.timestamp }} | |
asset_content_type: application/vnd.debian.binary-package | |
- name: Upload Native Client Executable to Release | |
if: github.event_name == 'push' && github.ref == 'refs/heads/master' | |
uses: actions/upload-release-asset@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ steps.create_release.outputs.upload_url }} | |
asset_path: ./target/release/gpt_for_uds_client | |
asset_name: gpt-for-uds-client-${{ steps.timestamp.outputs.timestamp }} | |
asset_content_type: application/vnd.debian.binary-package |