This commit is contained in:
2024-12-25 11:18:08 +01:00
parent 5085b377d9
commit a2a47ed7ee
23 changed files with 1678 additions and 48 deletions

46
.github/workflows/documentation.yml vendored Normal file
View File

@@ -0,0 +1,46 @@
name: Deploy Documentation to Pages
on:
push:
branches: ["development"]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
deploy-documentation:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Install Vlang dependencies
run: sudo apt update && sudo apt install -y libgc-dev
- name: Checkout
uses: actions/checkout@v3
- name: Setup Vlang
run: ./install_v.sh
- name: Generate documentation
run: ./doc.vsh
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: "/home/runner/work/crystallib/crystallib/docs"
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1

55
.github/workflows/hero_build_s3.yml vendored Normal file
View File

@@ -0,0 +1,55 @@
name: Test Crystal & Release to S3
permissions:
contents: write
on:
push:
branches: ["development"]
workflow_dispatch:
jobs:
build:
strategy:
matrix:
include:
- target: x86_64-unknown-linux-musl
os: ubuntu-latest
short-name: linux-i64
# - target: aarch64-unknown-linux-musl
# os: ubuntu-latest
# short-name: linux-arm64
# - target: aarch64-apple-darwin
# os: macos-latest
# short-name: macos-arm64
# - target: x86_64-apple-darwin
# os: macos-latest
# short-name: macos-i64
runs-on: ${{ matrix.os }}
steps:
- run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!"
- run: echo "🔎 The name of your branch is ${{ github.ref_name }} and your repository is ${{ github.repository }}."
- name: Check out repository code
uses: actions/checkout@v3
- name: Setup Vlang
run: ./install_v.sh
- name: Setup Herolib
run: ./install_herolib.vsh
- name: Do all the basic tests
run: ./test_basic.vsh
# - name: Upload to S3
# run: |
# echo 'export S3KEYID=${{ secrets.S3KEYID }}' > ${HOME}/mysecrets.sh
# echo 'export S3APPID=${{ secrets.S3APPID }}' >> ${HOME}/mysecrets.sh
# set -e && cat ${HOME}/mysecrets.sh
# sudo bash +x scripts/githubactions.sh
- name: Extract tag name
run: echo "TAG_NAME=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV