diff --git a/.github/workflows/pipeline.yml.backup b/.github/workflows/pipeline.yml.backup deleted file mode 100644 index c48fffd..0000000 --- a/.github/workflows/pipeline.yml.backup +++ /dev/null @@ -1,147 +0,0 @@ -name: Makefile CI -permissions: - contents: write - actions: read - -on: - push: - branches: [ "main" ] - pull_request: - branches: [ "main" ] - -jobs: - build: - outputs: - found_phrase: ${{ steps.check_phrase.outputs.found_phrase }} - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - - name: Debug Info - run: | - echo "Current directory: $(pwd)" - echo "List of files:" - ls -la - echo "Environment variables:" - env - echo "Corremos instaladores principales:" - sudo apt update - sudo apt install pipx - sudo apt install python3-setuptools - sudo apt install gcc clang libpq-dev libbsd-dev libncurses-dev valgrind build-essential nasm clang ghc cmake make libxext-dev libbsd-dev libpq-dev -y - sudo apt install python3-dev python3-pip -y - sudo apt install python3-dev python3-venv python3-wheel -y - - - name: Set up Python - uses: actions/setup-python@v2 - with: - python-version: '3.x' - - - name: Cache Francinette - id: cache-francinette - uses: actions/cache@v3 - with: - path: ~/francinette - key: francinette-${GITHUB_SHA} - - - name: Install Francinette - if: steps.cache-francinette.outputs.cache-hit != 'true' - run: | - sudo apt-get update - git clone --depth=1 https://github.com/xicodomingues/francinette.git ~/francinette - cd ~/francinette - bash "./bin/install.sh" - if bash ./tester.sh --help; then - echo "Francinette installation completed" - else - echo "Error: Francinette installation failed" - exit 1 - fi - - - name: Verify Francinette installation - run: | - cd ~/francinette - if bash ./bin/update.sh | grep -q "Francinette is updated"; then - echo "Francinette se ha instalado correctamente." - fi - - - name: List repository contents - run: | - cd ~/work/libft/libft - echo "Current directory: $(pwd)" - ls -la - cd ~/francinette - echo "Current directory: $(pwd)" - ls -la - - - name: Install Norminette - run: | - cd ~ - sudo apt update - sudo apt install python3-setuptools - sudo apt install pipx - pipx install norminette - pipx ensurepath - echo "Norminette version:" - norminette -v || echo "Failed to get Norminette version" - echo "Current directory: $(pwd)" - ls -la - echo "Norminette location:" - whereis norminette - shell: /usr/bin/bash -e {0} - env: - pythonLocation: /opt/hostedtoolcache/Python/3.12.6/x64 - LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.12.6/x64/lib - - - name: Run Norminette - run: | - echo "Norminette location:" - whereis norminette - echo "Norminette version:" - norminette -v || echo "Failed to get Norminette version" - cd ~/work/libft/libft - echo "Current directory: $(pwd)" - ls -la - norminette - shell: /usr/bin/bash -e {0} - - - name: Set TERM environment variable - run: echo "TERM=xterm" >> $GITHUB_ENV - - - name: Run Francinette - id: check_phrase - run: | - rm -rf ~/work/libft/libft_tmp - cp -r ~/work/libft/libft ~/work/libft/libft_tmp - cd ~/work/libft/libft_tmp - rm -rf ~/work/libft/libft_tmp/.github/ - echo "Current directory: $(pwd)" - ls -la - echo "Norminette version:" - norminette -v || echo "Failed to get Norminette version" - echo "Ejecutando Francinette:" - script -e -c "stdbuf -oL ~/francinette/tester.sh | tee francinette_output.log" /dev/null - search_result=$(grep -rnil "All tests passed! Congratulations!" .) - echo "Search result: $search_result" - if echo "$search_result" | grep -q "output.log"; then - echo "output.log found containing 'All tests passed! Congratulations!'." - echo "FOUND_PHRASE=true" >> $GITHUB_ENV - else - echo "FOUND_PHRASE=false" >> $GITHUB_ENV - fi - - - name: Create tarball of Francinette Export Tests - run: | - cd ~ - tar -czf francinette_exp_tst.tar.gz francinette/temp/ - - - name: Upload Francinette Export Tests artifact - uses: actions/upload-artifact@v3 - with: - name: francinette-exp-test - path: ~/francinette_exp_tst.tar.gz - if-no-files-found: warn - - - name: Checkout repository - uses: actions/checkout@v4 - diff --git a/Makefile b/Makefile index 34c71e1..24b638b 100644 --- a/Makefile +++ b/Makefile @@ -6,45 +6,91 @@ # By: javifer2