From c3ff68b061241e08dbb900079b551dc34ce129a3 Mon Sep 17 00:00:00 2001 From: Kuu7o Date: Sun, 16 Nov 2025 21:57:27 -0300 Subject: [PATCH] chore(del): removed unsued architecture --- .github/FUNDING.yml | 3 - .github/workflows/build-docker.yml | 63 ----------------- .github/workflows/run-tests.yml | 108 ----------------------------- .travis.yml | 51 -------------- Dockerfile.arm64 | 25 ------- 5 files changed, 250 deletions(-) delete mode 100644 .github/FUNDING.yml delete mode 100644 .github/workflows/build-docker.yml delete mode 100644 .github/workflows/run-tests.yml delete mode 100644 .travis.yml delete mode 100644 Dockerfile.arm64 diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml deleted file mode 100644 index 6f682a6..0000000 --- a/.github/FUNDING.yml +++ /dev/null @@ -1,3 +0,0 @@ -github: zedeus -liberapay: zedeus -patreon: nitter diff --git a/.github/workflows/build-docker.yml b/.github/workflows/build-docker.yml deleted file mode 100644 index c9f0392..0000000 --- a/.github/workflows/build-docker.yml +++ /dev/null @@ -1,63 +0,0 @@ -name: Docker - -on: - push: - paths-ignore: - - "README.md" - branches: - - master - -jobs: - tests: - uses: ./.github/workflows/run-tests.yml - secrets: inherit - build-docker-amd64: - needs: [tests] - runs-on: buildjet-2vcpu-ubuntu-2204 - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - name: Set up Docker Buildx - id: buildx - uses: docker/setup-buildx-action@v2 - with: - version: latest - - name: Login to DockerHub - uses: docker/login-action@v2 - with: - username: ${{ secrets.DOCKER_USERNAME }} - password: ${{ secrets.DOCKER_PASSWORD }} - - name: Build and push AMD64 Docker image - uses: docker/build-push-action@v3 - with: - context: . - file: ./Dockerfile - platforms: linux/amd64 - push: true - tags: zedeus/nitter:latest,zedeus/nitter:${{ github.sha }} - build-docker-arm64: - needs: [tests] - runs-on: buildjet-2vcpu-ubuntu-2204-arm - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - name: Set up Docker Buildx - id: buildx - uses: docker/setup-buildx-action@v2 - with: - version: latest - - name: Login to DockerHub - uses: docker/login-action@v2 - with: - username: ${{ secrets.DOCKER_USERNAME }} - password: ${{ secrets.DOCKER_PASSWORD }} - - name: Build and push ARM64 Docker image - uses: docker/build-push-action@v3 - with: - context: . - file: ./Dockerfile.arm64 - platforms: linux/arm64 - push: true - tags: zedeus/nitter:latest-arm64,zedeus/nitter:${{ github.sha }}-arm64 diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml deleted file mode 100644 index 46e4ace..0000000 --- a/.github/workflows/run-tests.yml +++ /dev/null @@ -1,108 +0,0 @@ -name: Tests - -on: - push: - paths-ignore: - - "*.md" - branches-ignore: - - master - workflow_call: - -# Ensure that multiple runs on the same branch do not overlap. -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true - -defaults: - run: - shell: bash - -jobs: - build-test: - name: Build and test - runs-on: buildjet-2vcpu-ubuntu-2204 - strategy: - matrix: - nim: ["1.6.x", "2.0.x", "2.2.x", "devel"] - steps: - - name: Checkout Code - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - - name: Cache Nimble Dependencies - id: cache-nimble - uses: buildjet/cache@v4 - with: - path: ~/.nimble - key: ${{ matrix.nim }}-nimble-v2-${{ hashFiles('*.nimble') }} - restore-keys: | - ${{ matrix.nim }}-nimble-v2- - - - name: Setup Nim - uses: jiro4989/setup-nim-action@v2 - with: - nim-version: ${{ matrix.nim }} - use-nightlies: true - repo-token: ${{ secrets.GITHUB_TOKEN }} - - - name: Build Project - run: nimble build -d:release -Y - - integration-test: - needs: [build-test] - name: Integration test - runs-on: buildjet-2vcpu-ubuntu-2204 - steps: - - name: Checkout code - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - - name: Cache Nimble Dependencies - id: cache-nimble - uses: buildjet/cache@v4 - with: - path: ~/.nimble - key: devel-nimble-v2-${{ hashFiles('*.nimble') }} - restore-keys: | - devel-nimble-v2- - - - name: Setup Python (3.10) with pip cache - uses: buildjet/setup-python@v4 - with: - python-version: "3.10" - cache: pip - - - name: Setup Nim - uses: jiro4989/setup-nim-action@v2 - with: - nim-version: devel - use-nightlies: true - repo-token: ${{ secrets.GITHUB_TOKEN }} - - - name: Build Project - run: nimble build -d:release -Y - - - name: Install SeleniumBase and Chromedriver - run: | - pip install seleniumbase - seleniumbase install chromedriver - - - name: Start Redis Service - uses: supercharge/redis-github-action@1.5.0 - - - name: Prepare Nitter Environment - run: | - sudo apt-get update && sudo apt-get install -y libsass-dev - cp nitter.example.conf nitter.conf - sed -i 's/enableDebug = false/enableDebug = true/g' nitter.conf - nimble md - nimble scss - echo '${{ secrets.SESSIONS }}' | head -n1 - echo '${{ secrets.SESSIONS }}' > ./sessions.jsonl - - - name: Run Tests - run: | - ./nitter & - pytest -n1 tests diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 5f4a741..0000000 --- a/.travis.yml +++ /dev/null @@ -1,51 +0,0 @@ -jobs: - include: - - stage: test - if: (NOT type IN (pull_request)) AND (branch = master) - dist: bionic - language: python - python: - - 3.6 - services: - - docker - - xvfb - script: - - sudo apt update - - sudo apt install --force-yes chromium-chromedriver - - wget https://www.dropbox.com/s/ckuoaubd1crrj2k/Linux_x64_737173_chrome-linux.zip -O chrome.zip - - unzip chrome.zip - - cd chrome-linux - - sudo rm /usr/bin/google-chrome - - sudo ln -s chrome /usr/bin/google-chrome - - cd .. - - pip3 install --upgrade pip - - pip3 install -U seleniumbase pytest - - docker run -d -p 127.0.0.1:8080:8080/tcp $IMAGE_NAME:$TRAVIS_COMMIT - - sleep 10 - - cd tests - - pytest --headless -n 8 --reruns 10 --reruns-delay 2 - - stage: pr - if: type IN (pull_request) - dist: bionic - language: python - python: - - 3.6 - services: - - docker - - xvfb - script: - - sudo apt update - - sudo apt install --force-yes chromium-chromedriver - - wget https://www.dropbox.com/s/ckuoaubd1crrj2k/Linux_x64_737173_chrome-linux.zip -O chrome.zip - - unzip chrome.zip - - cd chrome-linux - - sudo rm /usr/bin/google-chrome - - sudo ln -s chrome /usr/bin/google-chrome - - cd .. - - pip3 install --upgrade pip - - pip3 install -U seleniumbase pytest - - docker build -t $IMAGE_NAME:$TRAVIS_COMMIT . - - docker run -d -p 127.0.0.1:8080:8080/tcp $IMAGE_NAME:$TRAVIS_COMMIT - - sleep 10 - - cd tests - - pytest --headless -n 8 --reruns 3 --reruns-delay 2 diff --git a/Dockerfile.arm64 b/Dockerfile.arm64 deleted file mode 100644 index 46352c7..0000000 --- a/Dockerfile.arm64 +++ /dev/null @@ -1,25 +0,0 @@ -FROM alpine:3.20.6 as nim -LABEL maintainer="setenforce@protonmail.com" - -RUN apk --no-cache add libsass-dev pcre gcc git libc-dev nim nimble - -WORKDIR /src/nitter - -COPY nitter.nimble . -RUN nimble install -y --depsOnly - -COPY . . -RUN nimble build -d:danger -d:lto -d:strip --mm:refc \ - && nimble scss \ - && nimble md - -FROM alpine:3.20.6 -WORKDIR /src/ -RUN apk --no-cache add pcre ca-certificates openssl -COPY --from=nim /src/nitter/nitter ./ -COPY --from=nim /src/nitter/nitter.example.conf ./nitter.conf -COPY --from=nim /src/nitter/public ./public -EXPOSE 8080 -RUN adduser -h /src/ -D -s /bin/sh nitter -USER nitter -CMD ./nitter