Debug artifacts ci

This commit is contained in:
Arnaud 2025-10-09 11:08:44 +02:00
parent 7acc3ede7b
commit f1675034b8
No known key found for this signature in database
GPG Key ID: 20E40A5D3110766F

View File

@ -2,8 +2,8 @@ name: Artifacts
on:
push:
tags:
- 'v*'
# tags:
# - 'v*'
jobs:
build:
@ -21,11 +21,11 @@ jobs:
nim_os: macos
nim_cpu: amd64
lib_ext: dylib
- os: windows-2022
target: windows-amd64
nim_os: windows
nim_cpu: amd64
lib_ext: dll
# - os: windows-2022
# target: windows-amd64
# nim_os: windows
# nim_cpu: amd64
# lib_ext: dll
env:
TARGET: ${{ matrix.target }}
@ -73,13 +73,13 @@ jobs:
make update
make libcodex
- name: Build libcodex (Windows)
if: runner.os == 'Windows' && steps.cache-libcodex.outputs.cache-hit != 'true'
shell: msys2 {0}
run: |
pacman -Sy --noconfirm make
make update
make libcodex
# - name: Build libcodex (Windows)
# if: runner.os == 'Windows' && steps.cache-libcodex.outputs.cache-hit != 'true'
# shell: msys2 {0}
# run: |
# pacman -Sy --noconfirm make
# make update
# make libcodex
- name: Package artifacts (Linux/macOS)
if: runner.os != 'Windows'
@ -111,15 +111,15 @@ jobs:
path: ${{ env.ARCHIVE_PATH }}
if-no-files-found: error
publish-release:
needs: build
runs-on: ubuntu-22.04
steps:
- uses: actions/download-artifact@v4
with:
path: dist
- name: Create release draft
uses: softprops/action-gh-release@v1
with:
files: dist/**/codex-*.{tar.gz,zip}
draft: true
# publish-release:
# needs: build
# runs-on: ubuntu-22.04
# steps:
# - uses: actions/download-artifact@v4
# with:
# path: dist
# - name: Create release draft
# uses: softprops/action-gh-release@v1
# with:
# files: dist/**/codex-*.{tar.gz,zip}
# draft: true