forked from nogibjj/Final_Project_Cloud
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (35 loc) · 923 Bytes
/
rust.yml
File metadata and controls
38 lines (35 loc) · 923 Bytes
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
name: CI-Rust
on:
push:
branches: [ "main" ]
paths:
- "**.rs"
pull_request:
branches: [ "main" ]
paths:
- "**.rs"
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name : Format
run : make format_rust
- name: Lint
run: make lint_rust
- name: Archive and Upload Artifacts
uses: actions/upload-artifact@v3
with:
name: ml_pipeline-artifacts
path: ${{ github.workspace }}
- name: Save to repository
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
run: |
echo GH_TOKEN: "${GH_TOKEN}"
git config --global user.name 'github-actions'
git config --local user.email "action@github.com"
git add .
git commit -m "Performed Rust CI" || echo "ignore commit failure, proceed"
git push