fix: add github pages workflow and bench mod (#19)

This commit is contained in:
Aaryamann Challani
2024-06-19 14:25:51 +05:30
committed by GitHub
parent 1b268dbfd1
commit da59682b74
3 changed files with 43 additions and 0 deletions

1
.gitattributes vendored Normal file
View File

@@ -0,0 +1 @@
benchmarks/* linguist-vendored

40
.github/workflows/docs.yml vendored Normal file
View File

@@ -0,0 +1,40 @@
name: Deploy benchmarks to github pages
on:
push:
branches:
- master
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "deploy"
cancel-in-progress: true
jobs:
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.url }}
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Upload artifact
run: actions/upload-pages-artifact@v1
with:
path: "./benchmarks"
- name: Deploy to Github Pages
id: deployment
uses: actions/deploy-pages@v1

View File

@@ -112,6 +112,8 @@ macro_rules! define_curve_benchmarks {
);
})
});
group.finish();
}
};
}