name: Prepare Build with Make and Testing executable binary run-name: ${{ gitea.actor }} on: [push] jobs: Prepare-Build-Testing-With-Make: runs-on: ubuntu-latest steps: - name: Check out repository code uses: actions/checkout@v4 - name: Install build tools run: sudo apt-get update && sudo apt-get install -y build-essential - name: Building binary with make run: make -j$(nproc) - name: Testing to run binary builded with make run: | ./canCompleteCircuit/canCompleteCircuit \ && ./candy/candy \ && ./canJump/canJump \ && ./hindex/hindex \ && ./jump/jump \ && ./majorityelement/majorityelement \ && ./maxprofit/maxprofit \ && ./maxprofit2/maxprofit2 \ && ./productExceptSelf/productExceptSelf \ && ./randomizedset/randomizedset \ && ./rmdupfromsortedarray/rmdupfromsortedarray \ && ./rmdupfromsortedarray2/rmdupfromsortedarray2 \ && ./rotate/rotate \ && ./twopointers/twopointers