Skip to content

golang/vaas/v3.0.0-alpha.2 #71

golang/vaas/v3.0.0-alpha.2

golang/vaas/v3.0.0-alpha.2 #71

name: ci-rust-gscan-cli
on:
push:
branches:
- main
- rust_example_1_0_0
paths:
- "rust/example/gdscan/**"
- ".github/workflows/ci-rust-gscan-cli.yaml"
tags:
- "gscan*"
pull_request:
branches:
- main
- rust_example_1_0_0
paths:
- "rust/example/gdscan/**"
- ".github/workflows/ci-rust-gscan-cli.yaml"
release:
types: [created]
jobs:
release:
name: release ${{ matrix.target }}
runs-on: ubuntu-22.04
steps:
- name: checkout
uses: actions/checkout@v4
- name: Scan for Viruses
uses: ./.github/actions/vaas-scan-action
with:
VAAS_CLIENT_ID: ${{ secrets.VAAS_SCAN_CLIENT_ID }}
VAAS_CLIENT_SECRET: ${{ secrets.VAAS_SCAN_CLIENT_SECRET }}
- uses: actions/checkout@master
- name: build
id: build
uses: rust-build/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
SRC_DIR: rust/examples/gscan
RUSTTARGET: x86_64-pc-windows-gnu
EXTRA_FILES: "Readme.md"
UPLOAD_MODE: none
- name: Github Release
if: startsWith(github.ref, 'refs/tags/gscan')
uses: softprops/action-gh-release@v2
with:
files: ${{ steps.build.outputs.BUILT_ARCHIVE }}
- name: Microsoft Teams Notification
uses: skitionek/notify-microsoft-teams@master
if: failure()
with:
webhook_url: ${{ secrets.MSTEAMS_WEBHOOK }}
title: "`Failed workflow on for VaaS-SDK vaas-rust-ci`"
job: ${{ toJson(job) }}
steps: ${{ toJson(steps) }}