Merge pull request #13 from slayerrr12/main #14
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: C/C++ Build | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Compile and run C++ code | |
run: | | |
g++ -o Movie_Rental_And_Buying_System DiverCode.cpp | |
if [ $? -eq 0 ]; then | |
./Movie_Rental_And_Buying_System | |
else | |
echo "Compilation failed." | |
fi | |
working-directory: ${{ github.workspace }} |