-
Notifications
You must be signed in to change notification settings - Fork 10
61 lines (56 loc) · 1.63 KB
/
ci-rust-gscan-cli.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
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) }}