new readme, and updated workflows

This commit is contained in:
Peterino2 2026-11-03 09:18:17 -07:00
parent 57800241e9
commit 610737354c
3 changed files with 15 additions and 14 deletions

View File

@ -24,12 +24,13 @@ jobs:
include: include:
- name: windows-x86_64 - name: windows-x86_64
target: x86_64-windows-gnu target: x86_64-windows-gnu
archive: zip
- name: linux-x86_64 - name: linux-x86_64
target: x86_64-linux-gnu.2.28 target: x86_64-linux-gnu.2.28
archive: tar.gz
- name: macos-aarch64 - name: macos-aarch64
target: aarch64-macos.13.0 target: aarch64-macos.13.0
- name: macos-x86_64 archive: zip
target: x86_64-macos.13.0
steps: steps:
- name: Check out source - name: Check out source
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
@ -49,17 +50,22 @@ jobs:
-Dcpu=baseline -Dcpu=baseline
--prefix zig-out/${{ matrix.name }} --prefix zig-out/${{ matrix.name }}
# A tar archive preserves executable permissions inside the uploaded ZIP. - name: Package Linux build
- name: Package build if: matrix.archive == 'tar.gz'
run: >- run: >-
tar -czf zdxc-${{ matrix.name }}.tar.gz tar -czf zdxc-${{ matrix.name }}.tar.gz
-C zig-out/${{ matrix.name }} bin lib include -C zig-out/${{ matrix.name }} bin lib include
- name: Package Windows and macOS builds
if: matrix.archive == 'zip'
working-directory: zig-out/${{ matrix.name }}
run: zip -r ../../zdxc-${{ matrix.name }}.zip bin lib include
- name: Upload build - name: Upload build
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4 uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
with: with:
name: zdxc-${{ matrix.name }} name: zdxc-${{ matrix.name }}
path: zdxc-${{ matrix.name }}.tar.gz path: zdxc-${{ matrix.name }}.${{ matrix.archive }}
if-no-files-found: error if-no-files-found: error
retention-days: 14 retention-days: 14
@ -86,8 +92,8 @@ jobs:
TAG: ${{ github.ref_name }} TAG: ${{ github.ref_name }}
run: | run: |
if gh release view "$TAG" >/dev/null 2>&1; then if gh release view "$TAG" >/dev/null 2>&1; then
gh release upload "$TAG" artifacts/*.tar.gz --clobber gh release upload "$TAG" artifacts/*.tar.gz artifacts/*.zip --clobber
else else
gh release create "$TAG" artifacts/*.tar.gz \ gh release create "$TAG" artifacts/*.tar.gz artifacts/*.zip \
--verify-tag --title "zdxc $TAG" --generate-notes --verify-tag --title "zdxc $TAG" --generate-notes
fi fi

View File

@ -1,5 +1,5 @@
<p align="center"> <p align="center">
<img src="docs/assets/logo.svg" width="320" alt="zdxc" /> <img src="docs/assets/logo.svg" width="100" alt="zdxc" />
</p> </p>
<p align="center"> <p align="center">

View File

@ -1,10 +1,5 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 232 72" fill="none"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 72 72" fill="none">
<title>zdxc — tiny directx shader compiler</title> <title>zdxc — tiny directx shader compiler</title>
<style>
.wordmark { stroke: #111110; }
@media (prefers-color-scheme: dark) { .wordmark { stroke: #f4f4ee; } }
</style>
<rect x="4" y="4" width="64" height="64" rx="12" fill="#111110"/> <rect x="4" y="4" width="64" height="64" rx="12" fill="#111110"/>
<path d="M20 20h32v8L32 44h20v8H20v-8l20-16H20Z" fill="#f4f4ee"/> <path d="M20 20h32v8L32 44h20v8H20v-8l20-16H20Z" fill="#f4f4ee"/>
<path class="wordmark" d="M90 30h24L90 54h24M146 18v36h-22V30h22M158 30l24 24m0-24-24 24M214 30h-20v24h20" stroke-width="5" stroke-linecap="square" stroke-linejoin="miter"/>
</svg> </svg>

Before

Width:  |  Height:  |  Size: 579 B

After

Width:  |  Height:  |  Size: 271 B