Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
a34c2a5
feat: Add interu tool
Techassi Dec 17, 2024
b85d124
chore: Reduce binary size
Techassi Dec 17, 2024
21465df
ci: Add interu workflows
Techassi Dec 17, 2024
d1954d5
ci: Add checkout to workflows
Techassi Dec 17, 2024
e8783a8
ci: Up and download artifacts
Techassi Dec 17, 2024
2539147
feat: Add tracing
Techassi Dec 17, 2024
7d124b2
ci: Rename workflows
Techassi Dec 17, 2024
bca15ca
chore: Apply suggestions
Techassi Dec 18, 2024
4250ed3
fix: Remove faulty brace from suggestion
Techassi Dec 18, 2024
0a8f1e0
chore: Prefix output variables
Techassi Dec 18, 2024
b3a575c
chore: Move fixture config file
Techassi Dec 18, 2024
8c80583
feat: Add more runner and profile validation
Techassi Dec 18, 2024
825c166
docs: Update action README
Techassi Dec 18, 2024
b2a911e
test: Fix fixture file path
Techassi Dec 18, 2024
4077bf5
chore: Remove superfluous serde_yaml::with::singleton_map
Techassi Dec 18, 2024
c8089a0
refactor: Add lifetimes, removed clones
Techassi Dec 18, 2024
f8e9631
refactor: Improve error messages
Techassi Dec 18, 2024
9a269b2
chore: Add interu README
Techassi Jan 5, 2025
6b34590
fix: Emit cluster TTL
Techassi Jan 5, 2025
0ef671b
test: Add unit test for instance deserialization
Techassi Jan 5, 2025
ba1c73b
refactor: Remove unused Serialize derives
Techassi Jan 5, 2025
123a52b
chore: Add doc comments, improve error handling
Techassi Jan 5, 2025
989bb9d
chore: Apply suggestions
Techassi Jan 10, 2025
21089ed
chore: Change key-value to key=value
Techassi Jan 10, 2025
94f3574
chore: Change disk option to disk-gb
Techassi Jan 10, 2025
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
44 changes: 44 additions & 0 deletions .github/workflows/build_interu.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Build interu

on:
workflow_call:
inputs:
os:
required: true
type: string
target:
required: true
type: string
upload:
default: false
type: boolean

env:
RUST_VERSION: 1.83.0

jobs:
build:
name: Build interu-${{ inputs.target }}
runs-on: ${{ inputs.os }}
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false

- uses: dtolnay/rust-toolchain@0e66bd3e6b38ec0ad5312288c83e47c143e6b09e # v1
with:
toolchain: ${{ env.RUST_VERSION }}
targets: ${{ inputs.target }}

- name: Build Binary
run: cargo build --target ${{ inputs.target }} --release --package interu

- name: Rename Binary
run: mv target/${{ inputs.target }}/release/interu interu-${{ inputs.target }}

- name: Upload Artifact
if: inputs.upload
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
with:
path: interu-${{ inputs.target }}
25 changes: 25 additions & 0 deletions .github/workflows/pr_interu.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Build interu

on:
pull_request:
paths:
- .github/workflows/release_interu.yml
- .github/workflows/build_interu.yml
- .github/workflows/pr_interu.yml
- rust-toolchain.toml
- tools/interu/**
- Cargo.toml

jobs:
build:
uses: ./.github/workflows/build_interu.yml
with:
target: ${{ matrix.target }}
os: ${{ matrix.os }}

strategy:
fail-fast: false
matrix:
include:
- target: x86_64-unknown-linux-gnu
os: ubuntu-latest
33 changes: 33 additions & 0 deletions .github/workflows/release_interu.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Release interu

on:
push:
tags:
- "interu-[0-9]+.[0-9]+.[0-9]+**"

jobs:
build:
uses: ./.github/workflows/build_interu.yml
with:
upload: true
target: ${{ matrix.target }}
os: ${{ matrix.os }}

strategy:
fail-fast: false
matrix:
include:
- target: x86_64-unknown-linux-gnu
os: ubuntu-latest
release:
runs-on: ubuntu-latest
steps:
- name: Download Artifacts
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
with:
path: artifacts

- name: Upload Release Binary
uses: softprops/action-gh-release@7b4da11513bf3f43f9999e90eabced41ab8bb048 # v2.2.0
with:
files: artifacts/*
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
__pycache__
/target
Loading
Loading