Skip to content

Commit 21bbcd9

Browse files
committed
Add experimental github CI for dweb-app
1 parent ebd8315 commit 21bbcd9

File tree

2 files changed

+41
-43
lines changed

2 files changed

+41
-43
lines changed

.github/workflows/dweb-app-daved.yml

Lines changed: 37 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -16,23 +16,23 @@ jobs:
1616
# - os_name: Linux-aarch64
1717
# os: ubuntu-24.04
1818
# target: aarch64-unknown-linux-musl
19-
# bin: dweb-linux-arm64
19+
# cli-bin: dweb-linux-arm64
2020
- os_name: Linux-x86_64
2121
os: ubuntu-24.04
2222
target: x86_64-unknown-linux-gnu
23-
bin: dweb-linux-amd64
23+
cli-bin: dweb-linux-amd64
2424
- os_name: Windows-x86_64
2525
os: windows-latest
2626
target: x86_64-pc-windows-msvc
27-
bin: dweb-amd64.exe
27+
cli-bin: dweb-amd64.exe
2828
- os_name: macOS-x86_64
2929
os: macOS-latest
3030
target: x86_64-apple-darwin
31-
bin: dweb-darwin-amd64
31+
cli-bin: dweb-darwin-amd64
3232
- os_name: macOS-aarch64
3333
os: macOS-latest
3434
target: aarch64-apple-darwin
35-
bin: dweb-darwin-arm64
35+
cli-bin: dweb-darwin-arm64
3636
toolchain:
3737
- stable
3838
steps:
@@ -46,41 +46,49 @@ jobs:
4646
args: "--locked --release"
4747
strip: true
4848
- name: Rename binary (linux and macos)
49-
run: mv target/${{ matrix.platform.target }}/release/dweb target/${{ matrix.platform.target }}/release/${{ matrix.platform.bin }}
49+
run: mv target/${{ matrix.platform.target }}/release/dweb target/${{ matrix.platform.target }}/release/${{ matrix.platform.cli-bin }}
5050
if: matrix.platform.os_name != 'Windows-x86_64'
5151
- name: Rename binary (windows)
52-
run: mv target/${{ matrix.platform.target }}/release/dweb.exe target/${{ matrix.platform.target }}/release/${{ matrix.platform.bin }}
52+
run: mv target/${{ matrix.platform.target }}/release/dweb.exe target/${{ matrix.platform.target }}/release/${{ matrix.platform.cli-bin }}
5353
if: matrix.platform.os_name == 'Windows-x86_64'
5454
- name: Generate SHA-256
55-
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
56-
- name: Release binary and SHA-256 checksum to GitHub
57-
uses: softprops/action-gh-release@v1
58-
with:
59-
files: |
60-
target/${{ matrix.platform.target }}/release/${{ matrix.platform.bin }}
61-
target/${{ matrix.platform.target }}/release/${{ matrix.platform.bin }}.sha256
55+
run: shasum -a 256 target/${{ matrix.platform.target }}/release/${{ matrix.platform.cli-bin }} | cut -d ' ' -f 1 > target/${{ matrix.platform.target }}/release/${{ matrix.platform.cli-bin }}.sha256
56+
- name: Tag with v0.1.0 (TODO undo hack for gh-releases@v1)
57+
run: git tag v0.1.0 && git tag --list
58+
# - name: Release binary and SHA-256 checksum to GitHub
59+
# uses: softprops/action-gh-release@v1
60+
# with:
61+
# files: |
62+
# target/${{ matrix.platform.target }}/release/${{ matrix.platform.cli-bin }}
63+
# target/${{ matrix.platform.target }}/release/${{ matrix.platform.cli-bin }}.sha256
64+
env:
65+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6266

6367
build-dweb-app:
6468
strategy:
6569
fail-fast: false
6670
matrix:
6771
include:
68-
- platform: 'macos-latest'
69-
args: '--target x86_64-apple-darwin'
70-
target: 'x86_64-apple-darwin'
71-
os_name: 'macos-intel'
72-
- platform: 'macos-latest'
73-
args: '--target aarch64-apple-darwin'
74-
target: 'aarch64-apple-darwin'
75-
os_name: 'macos-silicon'
76-
- platform: 'ubuntu-22.04'
72+
- platform: macos-latest
73+
args: --target x86_64-apple-darwin
74+
target: x86_64-apple-darwin
75+
cli-bin: dweb-darwin-amd64
76+
os_name: macos-intel
77+
- platform: macos-latest
78+
args: --target aarch64-apple-darwin
79+
target: aarch64-apple-darwin
80+
cli-bin: dweb-darwin-arm64
81+
os_name: macos-silicon
82+
- platform: ubuntu-22.04
7783
args: ''
78-
target: 'x86_64-unknown-linux-gnu'
79-
os_name: 'linux'
80-
- platform: 'windows-latest'
84+
target: x86_64-unknown-linux-gnu
85+
cli-bin: dweb-linux-amd64
86+
os_name: linux
87+
- platform: windows-latest
8188
args: ''
82-
target: 'x86_64-pc-windows-msvc'
83-
os_name: 'windows'
89+
target: x86_64-pc-windows-msvc
90+
cli-bin: dweb-amd64.exe
91+
os_name: windows
8492

8593
runs-on: ${{ matrix.platform }}
8694
steps:
@@ -256,5 +264,5 @@ jobs:
256264
prerelease: false
257265
files: |
258266
release-assets/*
259-
env:
267+
env:
260268
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Cargo.lock

Lines changed: 4 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)