You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My main motivation for this is because i am creating a new zig extension for the zed editor.
This is because i'd like zigscient to be featured there as an alternative fork
For now i did create an own repo for building and providing releases, but it would probably be beneficial even for this repo, because users could just simply download it really quick.
That is my current workflow.
It's pretty dumbed down and just runs every day. If it's in the official repo we could just add the publishing of artifacts to the end of your test runs, which shouldn't significantly increase te build times too much.
name: Build Zigscient Nightlyon:
workflow_dispatch:
schedule:
- cron: "0 0 * * *"push:
branches:
- mainjobs:
build:
runs-on: ubuntu-lateststeps:
- uses: actions/checkout@v4with:
repository: llogick/zigscientref: dev
- uses: mlugg/setup-zig@v1with:
version: master
- name: Build all targetsrun: | mkdir -p builds for target in "x86_64-linux-gnu" "aarch64-linux-gnu" "x86_64-windows" "aarch64-windows" "x86_64-macos" "aarch64-macos"; do zig build -Dtarget=${target} -Doptimize=ReleaseFast if [[ $target == *"windows"* ]]; then cp zig-out/bin/zigscient.exe builds/zigscient-${target}.exe else cp zig-out/bin/zigscient builds/zigscient-${target} fi done
- uses: actions/upload-artifact@v4with:
name: zigscient-releasepath: builds/release:
needs: buildruns-on: ubuntu-latestpermissions:
contents: writesteps:
- uses: actions/download-artifact@v4with:
name: zigscient-releasepath: zigscient-release
- name: Get current daterun: echo "CURRENT_DATE=$(date +'%Y%m%d')" >> $GITHUB_ENV
- name: Create zipsrun: | cd zigscient-release for file in *; do zip -j "../${file%.*}.zip" "$file" done
- uses: softprops/action-gh-release@v2with:
name: ${{ env.CURRENT_DATE }}tag_name: ${{ env.CURRENT_DATE }}draft: falsemake_latest: truefiles: "*.zip"
The text was updated successfully, but these errors were encountered:
Add releasing in workflows
My main motivation for this is because i am creating a new zig extension for the zed editor.
This is because i'd like zigscient to be featured there as an alternative fork
For now i did create an own repo for building and providing releases, but it would probably be beneficial even for this repo, because users could just simply download it really quick.
That is my current workflow.
It's pretty dumbed down and just runs every day. If it's in the official repo we could just add the publishing of artifacts to the end of your test runs, which shouldn't significantly increase te build times too much.
The text was updated successfully, but these errors were encountered: