name: Prepare Build with Meson and Testing executable binary run-name: ${{ gitea.actor }} on: [push] jobs: Prepare-Build-Testing-With-Meson: runs-on: ubuntu-latest steps: - name: Check out repository code uses: actions/checkout@v4 # - name: Set up Python # uses: actions/setup-python@v5 # with: # python-run-version: "3.x" - name: Install Meson and Ninja run: | sudo apt-get update sudo apt-get install -y ninja-build build-essential meson - name: Configure Project run: meson setup build --buildtype=release - name: Build Project run: meson compile -C build - name: Testing to run binary builded with meson run: | ./build/canCompleteCircuit/canCompleteCircuit \ && ./build/candy/candy \ && ./build/canJump/canJump \ && ./build/hindex/hindex \ && ./build/jump/jump \ && ./build/majorityelement/majorityelement \ && ./build/maxprofit/maxprofit \ && ./build/maxprofit2/maxprofit2 \ && ./build/productExceptSelf/productExceptSelf \ && ./build/randomizedset/randomizedset \ && ./build/rmdupfromsortedarray/rmdupfromsortedarray \ && ./build/rmdupfromsortedarray2/rmdupfromsortedarray2 \ && ./build/rotate/rotate \ && ./build/twopointers/twopointers