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
20 changes: 14 additions & 6 deletions .github/workflows/language.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@ on:
- '.gitignore'
- 'docs/**'
merge_group:
paths-ignore:
- '**/*.md'
- '.gitignore'
- 'docs/**'

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand Down Expand Up @@ -53,9 +49,19 @@ jobs:
tool: cargo-make

- name: Install vibe-style (latest release)
env:
GITHUB_TOKEN: ${{ github.token }}
run: |
set -euo pipefail
VERSION="$(curl -fsSL https://api.github.com/repos/hack-ink/vibe-style/releases/latest | grep -oE '"tag_name": "v[^"]+"' | cut -d'"' -f4)"
VERSION="$(
curl -fsSL \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${GITHUB_TOKEN}" \
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/hack-ink/vibe-style/releases/latest \
| grep -oE '"tag_name": "v[^"]+"' \
| cut -d'"' -f4
)"
TARGET="$(rustc -vV | awk -F': ' '/^host:/ {print $2}')"
ASSET="vibe-style-${TARGET}-${VERSION}.tgz"

Expand All @@ -79,7 +85,9 @@ jobs:
run: cargo make fmt-rust-check

- name: Run tests
run: cargo make test-rust
env:
VOXIT_NATIVE_HOST_SIGN_IDENTITY: '-'
run: cargo make test

toml:
name: TOML checks
Expand Down
24 changes: 9 additions & 15 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,22 +40,16 @@ jobs:
cache: true
components: rustfmt, clippy

- name: Install cargo-bundle
uses: taiki-e/install-action@v2
with:
tool: cargo-bundle

- name: Add target
run: rustup target add ${{ matrix.target.name }}

- name: Build
run: cargo build --profile final-release --locked --target ${{ matrix.target.name }} -p voxit

- name: Bundle and Pack (macOS app)
if: matrix.target.os == 'macos-latest'
run: |
cargo bundle --profile final-release --target ${{ matrix.target.name }} -p voxit
APP_PATH="target/${{ matrix.target.name }}/bundle/osx/Voxit.app"
VOXIT_NATIVE_HOST_RUST_PROFILE=final-release \
VOXIT_NATIVE_HOST_SWIFT_CONFIGURATION=release \
VOXIT_NATIVE_HOST_LOCKED=1 \
VOXIT_NATIVE_HOST_SIGN_IDENTITY=- \
./scripts/build_and_run.sh stage
COMMON_ROOT="$(cd "$(git rev-parse --git-common-dir)/.." && pwd)"
APP_PATH="$COMMON_ROOT/target/voxit-native-host/Voxit.app"
if [ ! -d "$APP_PATH" ]; then
echo "Could not locate Voxit.app at $APP_PATH"
exit 1
Expand Down Expand Up @@ -106,8 +100,8 @@ jobs:
mkdir -p artifacts
mv voxit-*/* artifacts/
cd artifacts
sha256sum * | tee ../SHA256
md5sum * | tee ../MD5
sha256sum ./* | tee ../SHA256
md5sum ./* | tee ../MD5
mv ../SHA256 .
mv ../MD5 .

Expand Down
Loading
Loading