Skip to content

Commit

Permalink
Merge pull request #2 from ZhuLingQing/dev-ci
Browse files Browse the repository at this point in the history
initial available ci
  • Loading branch information
ZhuLingQing authored Mar 15, 2024
2 parents 0c1471b + 761286b commit e13fb65
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/c-cpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,19 @@ name: C/C++ CI

on:
push:
branches: [ "main", "dev" ]
pull_request:
branches: [ "main" ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- name: check the environment
run: g++ --version
run: git --version
run: g++ --version && git --version && bash --version
- name: list the environment
run: ls -la
- name: build with bash
run: bash build.sh
run: bash bash_build.sh
- name: run tests
run: pushd build && ./test_pt_os &&popd
1 change: 0 additions & 1 deletion bash_build.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/bin/bash
RED=$(tput setaf 1)
GREEN=$(tput setaf 2)
NCOLOR=$(tput sgr0)
Expand Down

0 comments on commit e13fb65

Please sign in to comment.