From 9807092c0d7270a1cd27e5ff87fc90619c5ebde6 Mon Sep 17 00:00:00 2001 From: Watson Wheeler Date: Tue, 14 Jul 2026 16:40:08 +1000 Subject: github: move github workflow scripts to old scripts Signed-off-by: Watson Wheeler --- .github/workflows/build.yaml | 30 ----------- .github/workflows/canary.yaml | 57 -------------------- .github/workflows/coverage.yaml | 27 ---------- .github/workflows/mdbook.yml | 62 ---------------------- .github/workflows/tests-image.yaml | 20 ------- scripts/old/.github/.github/workflows/build.yaml | 30 +++++++++++ scripts/old/.github/.github/workflows/canary.yaml | 57 ++++++++++++++++++++ .../old/.github/.github/workflows/coverage.yaml | 27 ++++++++++ scripts/old/.github/.github/workflows/mdbook.yml | 62 ++++++++++++++++++++++ .../old/.github/.github/workflows/tests-image.yaml | 20 +++++++ 10 files changed, 196 insertions(+), 196 deletions(-) delete mode 100644 .github/workflows/build.yaml delete mode 100644 .github/workflows/canary.yaml delete mode 100644 .github/workflows/coverage.yaml delete mode 100644 .github/workflows/mdbook.yml delete mode 100644 .github/workflows/tests-image.yaml create mode 100644 scripts/old/.github/.github/workflows/build.yaml create mode 100644 scripts/old/.github/.github/workflows/canary.yaml create mode 100644 scripts/old/.github/.github/workflows/coverage.yaml create mode 100644 scripts/old/.github/.github/workflows/mdbook.yml create mode 100644 scripts/old/.github/.github/workflows/tests-image.yaml diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml deleted file mode 100644 index 54bc5b0..0000000 --- a/.github/workflows/build.yaml +++ /dev/null @@ -1,30 +0,0 @@ -name: build - -on: - push: - branches: [ "master" ] - pull_request: - branches: [ "master" ] - -jobs: - build: - name: ${{ matrix.os }} / ${{ matrix.cc }} - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - include: - - os: ubuntu-latest - cc: gcc - - os: ubuntu-latest - cc: clang - - os: macos-latest - cc: clang - - os: windows-latest - cc: gcc - - steps: - - uses: actions/checkout@v4 - - - name: Build - run: make CC=${{ matrix.cc }} USE_HOSTED=1 diff --git a/.github/workflows/canary.yaml b/.github/workflows/canary.yaml deleted file mode 100644 index 4bbe3be..0000000 --- a/.github/workflows/canary.yaml +++ /dev/null @@ -1,57 +0,0 @@ -name: canary -on: - push: - branches: [ "master" ] -jobs: - build: - name: ${{ matrix.artifact }} - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - include: - - os: ubuntu-latest - cc: gcc - artifact: libtinyff-linux-x86_64.a - - os: macos-latest - cc: clang - artifact: libtinyff-macos-aarch64.a - - os: windows-latest - cc: gcc - artifact: libtinyff-windows-x86_64.a - steps: - - uses: actions/checkout@v4 - - name: Build - run: make CC=${{ matrix.cc }} USE_HOSTED=1 - - name: Copy artifact - run: cp build/libtinyff.a ${{ matrix.artifact }} - - name: Upload artifact - uses: actions/upload-artifact@v4 - with: - name: ${{ matrix.artifact }} - path: ${{ matrix.artifact }} - release: - name: Publish canary - needs: build - runs-on: ubuntu-latest - permissions: - contents: write - steps: - - uses: actions/download-artifact@v4 - - name: Delete existing canary - run: gh release delete canary --yes --cleanup-tag || true - env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - GH_REPO: ${{ github.repository }} - - name: Create canary release - uses: softprops/action-gh-release@v2 - with: - tag_name: canary - name: "canary (${{ github.sha }})" - prerelease: true - make_latest: false - body: | - Automated canary build from `${{ github.sha }}`. - Built on ${{ github.event.head_commit.timestamp }}. - > ⚠️ This is a rolling prerelease. Not recommended for production use. - files: "**/*.a" \ No newline at end of file diff --git a/.github/workflows/coverage.yaml b/.github/workflows/coverage.yaml deleted file mode 100644 index 527aa20..0000000 --- a/.github/workflows/coverage.yaml +++ /dev/null @@ -1,27 +0,0 @@ -name: Coverage - -on: - push: - branches: [master] - pull_request: - branches: [master] - -jobs: - coverage: - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v4 - - - name: Install lcov - run: sudo apt-get update && sudo apt-get install lcov - - - name: Generate coverage report - run: make coverage - - - name: Upload coverage report to Codecov - uses: codecov/codecov-action@v5 - with: - files: coverage.info - token: ${{ secrets.CODECOV_TOKEN }} - fail_ci_if_error: true \ No newline at end of file diff --git a/.github/workflows/mdbook.yml b/.github/workflows/mdbook.yml deleted file mode 100644 index 28d5e36..0000000 --- a/.github/workflows/mdbook.yml +++ /dev/null @@ -1,62 +0,0 @@ -# Sample workflow for building and deploying a mdBook site to GitHub Pages -# -# To get started with mdBook see: https://rust-lang.github.io/mdBook/index.html -# -name: Deploy mdBook site to Pages - -on: - # Runs on pushes targeting the default branch - push: - branches: ["master"] - - # Allows you to run this workflow manually from the Actions tab - workflow_dispatch: - -# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages -permissions: - contents: read - pages: write - id-token: write - -# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. -# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. -concurrency: - group: "pages" - cancel-in-progress: false - -jobs: - # Build job - build: - runs-on: ubuntu-latest - env: - MDBOOK_VERSION: 0.4.36 - steps: - - uses: actions/checkout@v4 - - name: Install mdBook - run: | - curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf -y | sh - rustup update - cargo install --version ${MDBOOK_VERSION} mdbook - - name: Setup Pages - id: pages - uses: actions/configure-pages@v5 - - name: Build with mdBook - run: mdbook build docs - - name: Add CNAME - run: echo "tinyff.tazy.dev" > docs/book/CNAME - - name: Upload artifact - uses: actions/upload-pages-artifact@v3 - with: - path: ./docs/book - - # Deployment job - deploy: - environment: - name: github-pages - url: ${{ steps.deployment.outputs.page_url }} - runs-on: ubuntu-latest - needs: build - steps: - - name: Deploy to GitHub Pages - id: deployment - uses: actions/deploy-pages@v5 diff --git a/.github/workflows/tests-image.yaml b/.github/workflows/tests-image.yaml deleted file mode 100644 index edb0d0f..0000000 --- a/.github/workflows/tests-image.yaml +++ /dev/null @@ -1,20 +0,0 @@ -name: tests-image - -on: - push: - branches: [ "master" ] - pull_request: - branches: [ "master" ] - -jobs: - test-png: - name: PNG - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - - name: Build - run: make USE_HOSTED=1 - - - name: Run PNG tests - run: make test-png USE_HOSTED=1 \ No newline at end of file diff --git a/scripts/old/.github/.github/workflows/build.yaml b/scripts/old/.github/.github/workflows/build.yaml new file mode 100644 index 0000000..54bc5b0 --- /dev/null +++ b/scripts/old/.github/.github/workflows/build.yaml @@ -0,0 +1,30 @@ +name: build + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +jobs: + build: + name: ${{ matrix.os }} / ${{ matrix.cc }} + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + include: + - os: ubuntu-latest + cc: gcc + - os: ubuntu-latest + cc: clang + - os: macos-latest + cc: clang + - os: windows-latest + cc: gcc + + steps: + - uses: actions/checkout@v4 + + - name: Build + run: make CC=${{ matrix.cc }} USE_HOSTED=1 diff --git a/scripts/old/.github/.github/workflows/canary.yaml b/scripts/old/.github/.github/workflows/canary.yaml new file mode 100644 index 0000000..4bbe3be --- /dev/null +++ b/scripts/old/.github/.github/workflows/canary.yaml @@ -0,0 +1,57 @@ +name: canary +on: + push: + branches: [ "master" ] +jobs: + build: + name: ${{ matrix.artifact }} + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + include: + - os: ubuntu-latest + cc: gcc + artifact: libtinyff-linux-x86_64.a + - os: macos-latest + cc: clang + artifact: libtinyff-macos-aarch64.a + - os: windows-latest + cc: gcc + artifact: libtinyff-windows-x86_64.a + steps: + - uses: actions/checkout@v4 + - name: Build + run: make CC=${{ matrix.cc }} USE_HOSTED=1 + - name: Copy artifact + run: cp build/libtinyff.a ${{ matrix.artifact }} + - name: Upload artifact + uses: actions/upload-artifact@v4 + with: + name: ${{ matrix.artifact }} + path: ${{ matrix.artifact }} + release: + name: Publish canary + needs: build + runs-on: ubuntu-latest + permissions: + contents: write + steps: + - uses: actions/download-artifact@v4 + - name: Delete existing canary + run: gh release delete canary --yes --cleanup-tag || true + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GH_REPO: ${{ github.repository }} + - name: Create canary release + uses: softprops/action-gh-release@v2 + with: + tag_name: canary + name: "canary (${{ github.sha }})" + prerelease: true + make_latest: false + body: | + Automated canary build from `${{ github.sha }}`. + Built on ${{ github.event.head_commit.timestamp }}. + > ⚠️ This is a rolling prerelease. Not recommended for production use. + files: "**/*.a" \ No newline at end of file diff --git a/scripts/old/.github/.github/workflows/coverage.yaml b/scripts/old/.github/.github/workflows/coverage.yaml new file mode 100644 index 0000000..527aa20 --- /dev/null +++ b/scripts/old/.github/.github/workflows/coverage.yaml @@ -0,0 +1,27 @@ +name: Coverage + +on: + push: + branches: [master] + pull_request: + branches: [master] + +jobs: + coverage: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Install lcov + run: sudo apt-get update && sudo apt-get install lcov + + - name: Generate coverage report + run: make coverage + + - name: Upload coverage report to Codecov + uses: codecov/codecov-action@v5 + with: + files: coverage.info + token: ${{ secrets.CODECOV_TOKEN }} + fail_ci_if_error: true \ No newline at end of file diff --git a/scripts/old/.github/.github/workflows/mdbook.yml b/scripts/old/.github/.github/workflows/mdbook.yml new file mode 100644 index 0000000..28d5e36 --- /dev/null +++ b/scripts/old/.github/.github/workflows/mdbook.yml @@ -0,0 +1,62 @@ +# Sample workflow for building and deploying a mdBook site to GitHub Pages +# +# To get started with mdBook see: https://rust-lang.github.io/mdBook/index.html +# +name: Deploy mdBook site to Pages + +on: + # Runs on pushes targeting the default branch + push: + branches: ["master"] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages +permissions: + contents: read + pages: write + id-token: write + +# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. +# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. +concurrency: + group: "pages" + cancel-in-progress: false + +jobs: + # Build job + build: + runs-on: ubuntu-latest + env: + MDBOOK_VERSION: 0.4.36 + steps: + - uses: actions/checkout@v4 + - name: Install mdBook + run: | + curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf -y | sh + rustup update + cargo install --version ${MDBOOK_VERSION} mdbook + - name: Setup Pages + id: pages + uses: actions/configure-pages@v5 + - name: Build with mdBook + run: mdbook build docs + - name: Add CNAME + run: echo "tinyff.tazy.dev" > docs/book/CNAME + - name: Upload artifact + uses: actions/upload-pages-artifact@v3 + with: + path: ./docs/book + + # Deployment job + deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + needs: build + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v5 diff --git a/scripts/old/.github/.github/workflows/tests-image.yaml b/scripts/old/.github/.github/workflows/tests-image.yaml new file mode 100644 index 0000000..edb0d0f --- /dev/null +++ b/scripts/old/.github/.github/workflows/tests-image.yaml @@ -0,0 +1,20 @@ +name: tests-image + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +jobs: + test-png: + name: PNG + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Build + run: make USE_HOSTED=1 + + - name: Run PNG tests + run: make test-png USE_HOSTED=1 \ No newline at end of file -- cgit v1.2.3