From b6ef113abad1bb113ec450ba1cc4ce0c70d79c10 Mon Sep 17 00:00:00 2001 From: selimseker Date: Fri, 6 Sep 2024 16:49:07 +0300 Subject: [PATCH] build for macos and linux --- .github/workflows/build_prod_exe.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build_prod_exe.yml b/.github/workflows/build_prod_exe.yml index 65188f4..e0a4ce1 100644 --- a/.github/workflows/build_prod_exe.yml +++ b/.github/workflows/build_prod_exe.yml @@ -16,8 +16,8 @@ jobs: matrix: include: - { runner: macos-latest, osname: macOS, arch: amd64, target: x86_64-apple-darwin, command: build } - # - { runner: macos-latest, osname: macOS, arch: arm64, target: aarch64-apple-darwin, command: build } - # - { runner: ubuntu-latest, osname: linux, arch: amd64, target: x86_64-unknown-linux-gnu, command: build } + - { runner: macos-latest, osname: macOS, arch: arm64, target: aarch64-apple-darwin, command: build } + - { runner: ubuntu-latest, osname: linux, arch: amd64, target: x86_64-unknown-linux-gnu, command: build } # - { runner: ubuntu-latest, osname: linux, arch: arm64, target: aarch64-unknown-linux-gnu, command: build } # - { runner: windows-latest, osname: windows, arch: amd64, target: x86_64-pc-windows-msvc, extension: ".exe"} # - { runner: windows-latest, osname: windows, arch: arm64, target: aarch64-unknown-linux-gnu, extension: ".exe"} @@ -66,6 +66,8 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v3 + with: + fetch-depth: 0 # Fetch all tags and history - name: Download Launch Artifacts uses: actions/download-artifact@v4 @@ -75,7 +77,9 @@ jobs: - name: Get the latest tag id: get_latest_tag - run: echo "LATEST_TAG=$(git describe --tags $(git rev-list --tags --max-count=1))" >> $GITHUB_ENV + run: | + LATEST_TAG=$(git describe --tags $(git rev-list --tags --max-count=1) 2>/dev/null || echo "untagged") + echo "LATEST_TAG=$LATEST_TAG" >> $GITHUB_ENV - name: Create release with artifacts uses: ncipollo/release-action@v1