Skip to content

Commit bab2d54

Browse files
committed
github actions update
1 parent 94dd0a2 commit bab2d54

File tree

4 files changed

+44
-14
lines changed

4 files changed

+44
-14
lines changed

.github/workflows/build-full-appimage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
../.github/workflows/scripts/appimage_prepare_env.sh
2828
- name: Cargo Build
2929
run: |
30-
../.github/workflows/scripts/appimage_build_wlx.sh
30+
../.github/workflows/scripts/appimage_build_wlx_full.sh
3131
- name: Build WayVR Dashboard
3232
run: |
3333
../.github/workflows/scripts/appimage_build_wayvr_dashboard.sh

.github/workflows/make-release.yml

Lines changed: 36 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,23 +26,29 @@ jobs:
2626
../.github/workflows/scripts/appimage_prepare_env.sh
2727
- name: Cargo Build
2828
run: |
29-
cargo build --release
30-
cp ../target/release/wlx-overlay-s ${APPDIR}/usr/bin
31-
chmod +x ${APPDIR}/usr/bin/wlx-overlay-s
32-
29+
../.github/workflows/scripts/appimage_build_wlx.sh
3330
- name: Package AppImage
3431
run: |
35-
export VERSION=$GITHUB_REF_NAME
36-
./linuxdeploy-x86_64.AppImage -dwlx-overlay-s.desktop -iwlx-overlay-s.png --appdir=${APPDIR} --output appimage --exclude-library '*libpipewire*'
37-
mv WlxOverlay-S-$VERSION-x86_64.AppImage WlxOverlay-S-x86_64.AppImage
38-
32+
../.github/workflows/scripts/appimage_package.sh
33+
- name: Cargo Build Full
34+
run: |
35+
../.github/workflows/scripts/appimage_build_wlx_full.sh
36+
- name: Build WayVR Dashboard
37+
run: |
38+
../.github/workflows/scripts/appimage_build_wayvr_dashboard.sh
39+
- name: Package AppImage
40+
run: |
41+
../.github/workflows/scripts/appimage_package_full.sh
42+
- name: Build Wayvrctl
43+
run: |
44+
cd ../wayvrctl
45+
cargo build --release
3946
- name: Make tarball
4047
run: |
4148
pip install portage pycargoebuild
4249
wget https://github.com/gentoo/gentoo/raw/refs/heads/master/metadata/license-mapping.conf
4350
mkdir dist
4451
pycargoebuild --distdir dist --license-mapping license-mapping.conf --crate-tarball --crate-tarball-path wlx-overlay-s-crates.tar.xz
45-
4652
- name: Create Release
4753
id: create_release
4854
uses: actions/create-release@v1
@@ -64,13 +70,33 @@ jobs:
6470
asset_name: wlx-overlay-s
6571
asset_content_type: application/octet-stream
6672

67-
- name: Upload AppImage
73+
- name: Upload WayVRCtl
74+
uses: actions/upload-release-asset@v1
75+
env:
76+
GITHUB_TOKEN: ${{ secrets.RELEASE_KEY }}
77+
with:
78+
upload_url: ${{ steps.create_release.outputs.upload_url }}
79+
asset_path: ../target/release/wayvrctl
80+
asset_name: wayvrctl
81+
asset_content_type: application/octet-stream
82+
83+
- name: Upload AppImage (Full)
6884
uses: actions/upload-release-asset@v1
6985
env:
7086
GITHUB_TOKEN: ${{ secrets.RELEASE_KEY }}
7187
with:
7288
upload_url: ${{ steps.create_release.outputs.upload_url }}
7389
asset_path: ./WlxOverlay-S-x86_64.AppImage
90+
asset_name: WlxOverlay-S-${{ github.ref_name }}-Full-x86_64.AppImage
91+
asset_content_type: application/octet-stream
92+
93+
- name: Upload AppImage (Slim)
94+
uses: actions/upload-release-asset@v1
95+
env:
96+
GITHUB_TOKEN: ${{ secrets.RELEASE_KEY }}
97+
with:
98+
upload_url: ${{ steps.create_release.outputs.upload_url }}
99+
asset_path: ./WlxOverlay-S-Slim-x86_64.AppImage
74100
asset_name: WlxOverlay-S-${{ github.ref_name }}-x86_64.AppImage
75101
asset_content_type: application/octet-stream
76102

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/bin/sh
2-
cargo build --release
3-
mv ../target/release/wlx-overlay-s ${APPDIR}/usr/bin
4-
chmod +x ${APPDIR}/usr/bin/wlx-overlay-s
2+
cargo build --release --no-default-features --features=openvr,openxr,wayland,x11,osc
3+
chmod +x ../target/release/wlx-overlay-s
4+
cp ../target/release/wlx-overlay-s ${APPDIR}/usr/bin
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
cargo build --release
3+
chmod +x ../target/release/wlx-overlay-s
4+
cp ../target/release/wlx-overlay-s ${APPDIR}/usr/bin

0 commit comments

Comments
 (0)