Merge pull request #4 from MatthewMuller/ci/find-binary-after-build #5
This file contains hidden or 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: CI/CD Pipeline | |
| on: | |
| push: | |
| branches: [ main, develop ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| build-and-test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Install dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y build-essential libncurses5-dev libncursesw5-dev | |
| - name: Build application | |
| run: | | |
| make clean | |
| make | |
| - name: Run tests | |
| run: | | |
| ./scripts/test_compile.sh | |
| - name: Check build artifacts | |
| run: | | |
| ls -la build/ | |
| file build/cisco-cli-interface | |
| # Future: Add deployment job when ready | |
| # deploy: | |
| # needs: build-and-test | |
| # runs-on: ubuntu-latest | |
| # if: github.ref == 'refs/heads/main' | |
| # steps: | |
| # - name: Deploy | |
| # run: echo "Deployment step will be added here" |