Adding the build testing script.
Some checks failed
Build Tavernworks / Explore-Gitea-Actions (push) Failing after 7s
Some checks failed
Build Tavernworks / Explore-Gitea-Actions (push) Failing after 7s
This will also install loreweaver for use by the blog.
This commit is contained in:
37
.gitea/workflows/build.yaml
Normal file
37
.gitea/workflows/build.yaml
Normal file
@ -0,0 +1,37 @@
|
||||
name: Build Tavernworks
|
||||
run-name: Building on Silverymoon by ${{ gitea.actor }}.
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
Explore-Gitea-Actions:
|
||||
runs-on: FreeBSD-14.1
|
||||
env:
|
||||
SOURCE_DIR: tavernworks
|
||||
TARGET_DIR: /usr/local/bin
|
||||
steps:
|
||||
- name: Setup Workspace
|
||||
run: |
|
||||
rm -rf ${{ github.workspace }}/*
|
||||
echo "Source Dir: $SOURCE_DIR"
|
||||
- name: Clone Repo
|
||||
uses: https://gitea.com/actions/checkout@v4
|
||||
with:
|
||||
repository: CyberMages/website
|
||||
token: ${{ secrets.CM_GIT_TOKEN }}
|
||||
path: ${{ env.SOURCE_DIR }}
|
||||
- name: Build Repo
|
||||
run: |
|
||||
pwd
|
||||
ls -la
|
||||
cd "$SOURCE_DIR"
|
||||
echo "Building release."
|
||||
cargo build --release
|
||||
echo "Installing loreweaver."
|
||||
cp ./target/release/loreweaver "$TARGET_DIR"
|
||||
- name: Clean Workspace
|
||||
run: |
|
||||
rm -rf ${{ github.workspace }}/*
|
||||
ls -la
|
||||
Reference in New Issue
Block a user