new readme, and updated workflows
This commit is contained in:
parent
57800241e9
commit
610737354c
|
|
@ -24,12 +24,13 @@ jobs:
|
|||
include:
|
||||
- name: windows-x86_64
|
||||
target: x86_64-windows-gnu
|
||||
archive: zip
|
||||
- name: linux-x86_64
|
||||
target: x86_64-linux-gnu.2.28
|
||||
archive: tar.gz
|
||||
- name: macos-aarch64
|
||||
target: aarch64-macos.13.0
|
||||
- name: macos-x86_64
|
||||
target: x86_64-macos.13.0
|
||||
archive: zip
|
||||
steps:
|
||||
- name: Check out source
|
||||
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
|
||||
|
|
@ -49,17 +50,22 @@ jobs:
|
|||
-Dcpu=baseline
|
||||
--prefix zig-out/${{ matrix.name }}
|
||||
|
||||
# A tar archive preserves executable permissions inside the uploaded ZIP.
|
||||
- name: Package build
|
||||
- name: Package Linux build
|
||||
if: matrix.archive == 'tar.gz'
|
||||
run: >-
|
||||
tar -czf zdxc-${{ matrix.name }}.tar.gz
|
||||
-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
|
||||
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
|
||||
with:
|
||||
name: zdxc-${{ matrix.name }}
|
||||
path: zdxc-${{ matrix.name }}.tar.gz
|
||||
path: zdxc-${{ matrix.name }}.${{ matrix.archive }}
|
||||
if-no-files-found: error
|
||||
retention-days: 14
|
||||
|
||||
|
|
@ -86,8 +92,8 @@ jobs:
|
|||
TAG: ${{ github.ref_name }}
|
||||
run: |
|
||||
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
|
||||
gh release create "$TAG" artifacts/*.tar.gz \
|
||||
gh release create "$TAG" artifacts/*.tar.gz artifacts/*.zip \
|
||||
--verify-tag --title "zdxc $TAG" --generate-notes
|
||||
fi
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
<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 align="center">
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
<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"/>
|
||||
<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>
|
||||
|
|
|
|||
|
Before Width: | Height: | Size: 579 B After Width: | Height: | Size: 271 B |
Loading…
Reference in New Issue