Skip to content

Commit

Permalink
fix: add linux shared ELF x86_64 build in release
Browse files Browse the repository at this point in the history
rename ELF releases to cover more arch combinations in future
  • Loading branch information
jaromil committed Nov 26, 2024
1 parent acc3f18 commit 7fa7a8b
Showing 1 changed file with 33 additions and 8 deletions.
41 changes: 33 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,15 @@ jobs:
@semantic-release/changelog
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload release docs artifacts
uses: actions/upload-artifact@v4
with:
name: documentation
path: |
build/release-intro.md
musl-release:
name: 🐧 Musl Linux binary release build
linux-release:
name: 🐧 Linux shared binary release build
runs-on: ubuntu-latest
needs: [semantic-release]
if: ${{ needs.semantic-release.outputs.new_release_published == 'true' }}
Expand All @@ -135,24 +141,43 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Upload release docs artifacts
- name: Install build deps
run: |
sudo apt install -qy make
- name: Build x86_64 on Linux
run: |
make linux-x86 RELEASE=1
mv cjit.x86_64.ELF
- name: Upload artifact linux-amd64
uses: actions/upload-artifact@v4
with:
name: documentation
name: release-shared-linux-x86_64
path: |
build/release-intro.md
cjit.x86_64.ELF
musl-release:
name: 🐧 Musl Linux binary release build
runs-on: ubuntu-latest
needs: [semantic-release]
if: ${{ needs.semantic-release.outputs.new_release_published == 'true' }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install build deps
run: |
sudo apt install -qy make musl-tools musl-dev
- name: Build x86_64 with musl-system
run: |
make musl-linux RELEASE=1
mv cjit cjit.static-x86_64.ELF
- name: Upload artifact linux-amd64
uses: actions/upload-artifact@v4
with:
name: release-musl-linux-x86_64
path: |
cjit
cjit.static-x86_64.ELF
win-native-release:
name: 🪟 Windows native binary release build
Expand Down Expand Up @@ -190,7 +215,7 @@ jobs:
draft-binary-release:
name: 📦 Pack release
needs: [semantic-release, musl-release, win-native-release]
needs: [semantic-release, musl-release, linux-release, win-native-release]
runs-on: ubuntu-latest
steps:
- name: download binary artifacts
Expand All @@ -215,7 +240,7 @@ jobs:

remove-tag-on-fail:
name: 🧻 Remove tag on fail
needs: [semantic-release, musl-release, win-native-release]
needs: [semantic-release, musl-release, linux-release, win-native-release]
runs-on: ubuntu-latest
if: ${{ (failure() || cancelled()) && needs.semantic-release.outputs.new_release_published == 'true' }}
steps:
Expand Down

0 comments on commit 7fa7a8b

Please sign in to comment.