summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/old/.github/.github/workflows/build.yaml30
-rw-r--r--scripts/old/.github/.github/workflows/canary.yaml57
-rw-r--r--scripts/old/.github/.github/workflows/coverage.yaml27
-rw-r--r--scripts/old/.github/.github/workflows/mdbook.yml62
-rw-r--r--scripts/old/.github/.github/workflows/tests-image.yaml20
5 files changed, 196 insertions, 0 deletions
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