Skip to content

Commit

Permalink
trigger build for linux targets
Browse files Browse the repository at this point in the history
  • Loading branch information
selimseker committed Sep 26, 2024
1 parent 0db8745 commit 43bb89b
Showing 1 changed file with 7 additions and 17 deletions.
24 changes: 7 additions & 17 deletions .github/workflows/build_prod_exe.yml
Original file line number Diff line number Diff line change
@@ -1,34 +1,24 @@
name: Build and Publish Compute Releases

on:
release:
types: [published]
push:
branches: ["trigger-github-actions"]

permissions:
contents: write

jobs:

check_release:
if: "! contains(github.event.release.tag_name, '-dev')" # skip if the tag ends with -dev
runs-on: ubuntu-latest
steps:
- name: Echo tag
run: |
echo "tag name: ${{ github.event.release.tag_name }}"
echo "release name: ${{ github.event.release.name }}"
build:
needs: check_release
runs-on: ${{ matrix.runner }}
strategy:
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: 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-musl, command: build }
- { runner: ubuntu-latest, osname: linux, arch: arm64, target: aarch64-unknown-linux-musl, command: build, build_args: --no-default-features }
- { runner: windows-latest, osname: windows, arch: amd64, target: x86_64-pc-windows-msvc, command: build, extension: ".exe" }
# - { runner: windows-latest, osname: windows, arch: amd64, target: x86_64-pc-windows-msvc, command: build, extension: ".exe" }
# - { runner: windows-latest, osname: windows, arch: arm64, target: aarch64-pc-windows-msvc, command: build, extension: ".exe", toolchain: nightly }

steps:
Expand Down Expand Up @@ -79,8 +69,8 @@ jobs:
- name: Create release with artifacts
uses: ncipollo/release-action@v1
with:
name: ${{ github.event.release.name }}
tag: ${{ github.event.release.tag_name }}
name: "v0.2.4"
tag: "v0.2.4"
artifacts: "artifacts/*"
artifactContentType: application/octet-stream
allowUpdates: true
Expand Down

0 comments on commit 43bb89b

Please sign in to comment.