Compare commits

..

No commits in common. "0aed9b51a90ec5332989d71ca32c5e3f49b4a43d" and "5bf7647cbad37558fe1d825cc7c46e75e9483034" have entirely different histories.

View File

@ -29,13 +29,13 @@ jobs:
id: darwin_amd64_gui id: darwin_amd64_gui
cmd: make darwin_amd64_gui cmd: make darwin_amd64_gui
out: out/darwin_amd64_gui/yarr.app out: out/darwin_amd64_gui/yarr.app
- name: Build arm64 cli - name: Build arm64
uses: ./.github/actions/prepare uses: ./.github/actions/prepare
with: with:
id: darwin_arm64 id: darwin_arm64
cmd: make darwin_arm64 cmd: make darwin_arm64
out: out/darwin_arm64/yarr out: out/darwin_arm64/yarr
- name: Build amd64 cli - name: Build amd64
uses: ./.github/actions/prepare uses: ./.github/actions/prepare
with: with:
id: darwin_amd64 id: darwin_amd64
@ -52,22 +52,38 @@ jobs:
uses: actions/setup-go@v4 uses: actions/setup-go@v4
with: with:
go-version: '^1.18' go-version: '^1.18'
- name: Build amd64 gui - name: Setup Zig
uses: ./.github/actions/prepare uses: mlugg/setup-zig@v1
with: with:
id: windows_amd64_gui version: 0.14.0
cmd: make windows_amd64_gui
out: out/windows_amd64_gui/yarr.exe
- name: Build arm64 gui - name: Build arm64 gui
if: false if: false
uses: ./.github/actions/prepare uses: ./.github/actions/prepare
with: with:
id: windows_arm64_gui id: windows_arm64_gui
cmd: make windows_arm64_gui cmd: make windows_arm64_gui
out: out/windows_arm64_gui/yarr.exe out: out/windows_arm64_gui/yarr.app
- name: Build amd64 gui
uses: ./.github/actions/prepare
with:
id: windows_amd64_gui
cmd: make windows_amd64_gui
out: out/windows_amd64_gui/yarr.app
- name: Build arm64
uses: ./.github/actions/prepare
with:
id: windows_arm64
cmd: make windows_arm64
out: out/windows_arm64/yarr
- name: Build amd64
uses: ./.github/actions/prepare
with:
id: windows_amd64
cmd: make windows_amd64
out: out/windows_amd64/yarr
build_multi_cli: build_linux:
name: Build for Windows/MacOS/Linux CLI name: Build for Linux
runs-on: ubuntu-22.04 runs-on: ubuntu-22.04
steps: steps:
- name: Checkout - name: Checkout
@ -80,42 +96,30 @@ jobs:
uses: mlugg/setup-zig@v1 uses: mlugg/setup-zig@v1
with: with:
version: 0.14.0 version: 0.14.0
- name: Build linux/amd64 - name: Build amd64
uses: ./.github/actions/prepare uses: ./.github/actions/prepare
with: with:
id: linux_amd64 id: linux_amd64
cmd: make linux_amd64 cmd: make linux_amd64
out: out/linux_amd64/yarr out: out/linux_amd64/yarr
- name: Build linux/arm64 - name: Build arm64
uses: ./.github/actions/prepare uses: ./.github/actions/prepare
with: with:
id: linux_arm64 id: linux_arm64
cmd: make linux_arm64 cmd: make linux_arm64
out: out/linux_arm64/yarr out: out/linux_arm64/yarr
- name: Build linux/armv7 - name: Build armv7
uses: ./.github/actions/prepare uses: ./.github/actions/prepare
with: with:
id: linux_armv7 id: linux_armv7
cmd: make linux_armv7 cmd: make linux_armv7
out: out/linux_armv7/yarr out: out/linux_armv7/yarr
- name: Build windows/amd64
uses: ./.github/actions/prepare
with:
id: windows_amd64
cmd: make windows_amd64
out: out/windows_amd64/yarr
- name: Build windows/arm64
uses: ./.github/actions/prepare
with:
id: windows_arm64
cmd: make windows_arm64
out: out/windows_arm64/yarr
create_release: create_release:
name: Create Release name: Create Release
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: ${{ startsWith(github.ref, 'refs/tags/') }} if: ${{ startsWith(github.ref, 'refs/tags/') }}
needs: [build_macos, build_windows, build_multi_cli] needs: [build_macos, build_windows, build_linux]
steps: steps:
- name: Download Artifacts - name: Download Artifacts
uses: actions/download-artifact@v4.1.7 uses: actions/download-artifact@v4.1.7