Skip to content

Commit

Permalink
Update yml4
Browse files Browse the repository at this point in the history
  • Loading branch information
Mao Huynh committed Apr 22, 2024
1 parent 3a4d3c6 commit aba5cf8
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 91 deletions.
22 changes: 0 additions & 22 deletions .github/workflows/hello.yml

This file was deleted.

50 changes: 35 additions & 15 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,41 @@ on:
branches: [ "master" ]

jobs:
build:
Setup:
runs-on: ubuntu-latest
needs: [hello, variables, test]
strategy:
matrix:
include:
- name: hello
job: build_hello
- name: variables
job: build_variables
- name: test
job: test

no_dependencies:
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Rust
uses: actions/setup-rust@v1
with:
rust-version: stable
build_hello:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Build and test in hello directory
run: |
cd hello
cargo build --verbose
build_variables:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Build and test in variables directory
run: |
cd variables
cargo build --verbose
run_tests:
runs-on: ubuntu-latest
steps:
- name: No dependencies step
run: echo "This job has no dependencies"
- name: Checkout code
uses: actions/checkout@v3
- name: Run tests
run: |
cd hello
cargo test
cd ../variables
cargo test
23 changes: 0 additions & 23 deletions .github/workflows/test.yml

This file was deleted.

31 changes: 0 additions & 31 deletions .github/workflows/variables.yml

This file was deleted.

0 comments on commit aba5cf8

Please sign in to comment.