Skip to content

Commit 7105c8b

Browse files
committed
feat: implement companion GUI binary and update CI/CD pipeline
1 parent fa3a4a0 commit 7105c8b

10 files changed

Lines changed: 4740 additions & 147 deletions

File tree

.github/workflows/release.yml

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,23 +45,33 @@ jobs:
4545
target: ${{ matrix.target }}
4646
override: true
4747

48-
- name: Compile Production Binary
49-
run: cargo build --release --target ${{ matrix.target }}
48+
- name: Compile Production Binaries
49+
run: cargo build --release --workspace --target ${{ matrix.target }}
5050

5151
- name: Stage Assets for Upload
5252
shell: bash
5353
run: |
54+
mkdir staging
55+
# Define binaries
56+
CLI_BIN="gpupatch"
57+
GUI_BIN="companion"
58+
EXT=""
5459
if [ "${{ matrix.os }}" = "windows-latest" ]; then
55-
cp target/${{ matrix.target }}/release/${{ matrix.artifact_name }} ./${{ matrix.asset_name }}
56-
else
57-
cp target/${{ matrix.target }}/release/${{ matrix.artifact_name }} ./${{ matrix.asset_name }}
58-
chmod +x ./${{ matrix.asset_name }}
60+
EXT=".exe"
61+
fi
62+
63+
# Copy binaries
64+
cp target/${{ matrix.target }}/release/${CLI_BIN}${EXT} ./staging/${CLI_BIN}-${{ matrix.target }}${EXT}
65+
cp target/${{ matrix.target }}/release/${GUI_BIN}${EXT} ./staging/${GUI_BIN}-${{ matrix.target }}${EXT}
66+
67+
if [ "${{ matrix.os }}" != "windows-latest" ]; then
68+
chmod +x ./staging/*
5969
fi
6070
6171
- name: Upload to GitHub Release
6272
uses: softprops/action-gh-release@v1
6373
with:
6474
files: |
65-
${{ matrix.asset_name }}
75+
./staging/*
6676
env:
6777
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)