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
12 changes: 5 additions & 7 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ on:
env:
EXECUTABLE_NAME: evidenceangel-ui
CARGO_KEEP_CONSOLE_ON_WINDOWS_FEATURE: windows-keep-console-window
CARGO_EXTRA_BUILD_PARAMS: --features ui --bin evidenceangel-ui
# Build params for the UI
CARGO_EXTRA_BUILD_PARAMS: -p ui

jobs:
create-release:
Expand Down Expand Up @@ -80,24 +81,21 @@ jobs:
command: "build"
target: ${{ matrix.platform.target }}
toolchain: ${{ matrix.toolchain }}
args: "--features cli --bin evidenceangel-cli --locked --release"
args: "-p cli --locked --release"
strip: true
- name: Rename binary (linux and macos)
run: mv target/${{ matrix.platform.target }}/release/evidenceangel-cli target/${{ matrix.platform.target }}/release/${{ matrix.platform.bin }}
if: matrix.platform.os_name != 'Windows-x86_64'
- name: Rename binary (windows)
run: mv target/${{ matrix.platform.target }}/release/evidenceangel-cli.exe target/${{ matrix.platform.target }}/release/${{ matrix.platform.bin }}
if: matrix.platform.os_name == 'Windows-x86_64'
- name: Generate SHA-256
run: shasum -a 256 target/${{ matrix.platform.target }}/release/${{ matrix.platform.bin }} | cut -d ' ' -f 1 > target/${{ matrix.platform.target }}/release/${{ matrix.platform.bin }}.sha256
- name: Release binary and SHA-256 checksum to GitHub
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ needs.create-release.outputs.CARGO_PKG_VERSION }}
prerelease: ${{ needs.create-release.outputs.CARGO_PKG_PRERELEASE }}
files: |
target/${{ matrix.platform.target }}/release/${{ matrix.platform.bin }}
target/${{ matrix.platform.target }}/release/${{ matrix.platform.bin }}.sha256

build-gtk:
name: Build and Publish (${{ matrix.platform.os_name }})
Expand Down Expand Up @@ -211,12 +209,12 @@ jobs:
cp bundle/bin/${{ env.EXECUTABLE_NAME }}-${{ matrix.platform.file_suffix }}.exe target/release/evidenceangel-ui.exe
cp bundle/bin/${{ env.EXECUTABLE_NAME }}-console-${{ matrix.platform.file_suffix }}.exe target/release/evidenceangel-ui-console.exe
echo Building CLI executable...
cargo build --release -F cli --bin evidenceangel-cli
cargo build --release -p cli

echo Generating Wix script...
rm -rf ${{ steps.wingtk-install.outputs.BASE_DIR }}/include
rm -rf ${{ steps.wingtk-install.outputs.BASE_DIR }}/bin/*.exe
pushd wix || exit
pushd ui/wix || exit
GTK4_PATH="${{ steps.wingtk-install.outputs.BASE_DIR }}" ./generate_wix_script.sh
sed -i 's|/d/|D:/|g' main.wxs
popd || exit
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish-docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
echo "CARGO_PKG_PRERELEASE=${CARGO_PKG_PRERELEASE}" >> $GITHUB_OUTPUT
- name: Build book
run: |
cd docs || exit
cd ui/docs || exit
cargo install mdbook
mdbook build -d ${{ steps.version.outputs.CARGO_PKG_VERSION }}
- name: Upload documentation
Expand All @@ -33,7 +33,7 @@ jobs:
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USER }}
key: ${{ secrets.SSH_KEY }}
source: docs/${{ steps.version.outputs.CARGO_PKG_VERSION }}
source: ui/docs/${{ steps.version.outputs.CARGO_PKG_VERSION }}
target: ${{ secrets.SSH_DOCS_TARGET_PATH }}


38 changes: 0 additions & 38 deletions .github/workflows/publish-schemas.yaml

This file was deleted.

3 changes: 1 addition & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"rust-analyzer.cargo.features": "all",
"conventionalCommits.scopes": [
"cli",
"exporters",
"ui"
"ui",
]
}
Loading