Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 33 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,41 @@ on:
- main
paths:
- 'VERSION'
workflow_dispatch:

jobs:
version-badge:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: "Read version"
id: version
run: echo "VERSION=$(cat VERSION)" >> $GITHUB_ENV

- name: "Generate SVG badge"
run: |
cat > version.svg <<EOF
<svg xmlns="http://www.w3.org/2000/svg" width="140" height="20">
<rect width="60" height="20" fill="#555"/>
<rect x="60" width="80" height="20" fill="#007ec6"/>
<text x="30" y="14" fill="#fff" font-family="Verdana" font-size="11">version</text>
<text x="100" y="14" fill="#fff" font-family="Verdana" font-size="11">${VERSION}</text>
</svg>
EOF

- name: "Commit badge"
run: |
git config user.name "github-actions"
git config user.email "github-actions@github.com"
git add version.svg
git commit -m "[build] E: Update Version Badge To ${VERSION}" || echo "No changes"
git push

# Run this job strictly after updating the version badge, so that the updated
# badge makes it into the tag.
build-and-push:
needs: version-badge
runs-on: ubuntu-latest
steps:
- name: "Check out the repo"
Expand All @@ -32,4 +64,4 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: "Build and push images"
run: ./scripts/accli_wrapper.sh docker build-all --push
run: ./scripts/accli_wrapper.sh dev docker build-all --push
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ members = [
]

[workspace.package]
version = "0.9.1"
version = "0.9.2"
license-file = "LICENSE"
authors = ["Large-Scale Data & Systems Group - Imperial College London"]
edition = "2024"
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
</p>

<p>
<a href="https://github.com/faasm/tless/blob/main/VERSION">
<img src="version.svg" alt="Accless Version" />
</a>
<a href="https://github.com/faasm/tless/actions/workflows/tests.yml">
<img src="https://github.com/faasm/tless/actions/workflows/tests.yml/badge.svg"
alt="Integration Tests" />
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.9.1
0.9.2
4 changes: 2 additions & 2 deletions config/githooks/commit-msg
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ if [ $(echo "$commit_msg_title" | wc -c) -gt $max_length ]; then
exit 1
fi

if ! echo "$commit_msg" | grep -q -E '\[(accless|accli|applications|as|build|ci|config|docs|scripts|template-graph)\] (B|E|F|W): '; then
if ! echo "$commit_msg" | grep -q -E '\[(accless|accli|applications|as|build|ci|config|docs|experiments|scripts|template-graph)\] (B|E|F|W): '; then
echo "ERROR: Commit message does not match pattern: '[module-name] (B|E|F|W): Short Description"
echo "ERROR: List of modules: accless, accli, applications, as, build, ci, config, docs, scripts, template-graph"
echo "ERROR: List of modules: accless, accli, applications, as, build, ci, config, docs, experiments, scripts, template-graph"
exit 1
fi
7 changes: 7 additions & 0 deletions scripts/snp/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@ check_host_reqs() {

print_info "Checking host system requirements..."

# Check we can run `cpuid`.
if [[ ! -e "/dev/cpu/0/cpuid" ]]; then
print_error "check_host_reqs(): cpuid kernel module is not loaded"
print_error "check_host_reqs(): fix: run 'sudo modprobe cpuid' once or add 'cpuid' to /etc/modules-load.d/cpuid.conf."
exit 1
fi

# Check `/dev/sev` exists.
if [[ ! -e "$device" ]]; then
print_error "check_host_reqs(): $device does not exist"
Expand Down
Loading