Skip to content

Commit

Permalink
Fix build scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
tindy2013 committed Dec 10, 2023
1 parent 275f77a commit 49d72f4
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:

- name: Build and export
id: build
if: github.ref == 'refs/heads/master'
if: startsWith(github.ref, 'refs/heads/')
uses: docker/build-push-action@v3
with:
platforms: linux/amd64
Expand Down Expand Up @@ -65,7 +65,7 @@ jobs:
outputs: type=image,push=true

- name: Save digest
if: github.ref == 'refs/heads/master'
if: startsWith(github.ref, 'refs/heads/')
run: echo ${{ steps.build.outputs.digest }} > /tmp/digest.txt

- name: Save release digest
Expand Down Expand Up @@ -102,7 +102,7 @@ jobs:

- name: Build and export
id: build
if: github.ref == 'refs/heads/master'
if: startsWith(github.ref, 'refs/heads/')
uses: docker/build-push-action@v3
with:
platforms: linux/386
Expand Down Expand Up @@ -132,7 +132,7 @@ jobs:
outputs: type=image,push=true

- name: Save digest
if: github.ref == 'refs/heads/master'
if: startsWith(github.ref, 'refs/heads/')
run: echo ${{ steps.build.outputs.digest }} > /tmp/digest.txt

- name: Save release digest
Expand Down Expand Up @@ -169,7 +169,7 @@ jobs:

- name: Build and export
id: build
if: github.ref == 'refs/heads/master'
if: startsWith(github.ref, 'refs/heads/')
uses: docker/build-push-action@v3
with:
platforms: linux/arm/v7
Expand Down Expand Up @@ -202,7 +202,7 @@ jobs:
outputs: type=image,push=true

- name: Save digest
if: github.ref == 'refs/heads/master'
if: startsWith(github.ref, 'refs/heads/')
run: echo ${{ steps.build.outputs.digest }} > /tmp/digest.txt

- name: Save release digest
Expand Down Expand Up @@ -239,7 +239,7 @@ jobs:

- name: Build and export
id: build
if: github.ref == 'refs/heads/master'
if: startsWith(github.ref, 'refs/heads/')
uses: docker/build-push-action@v3
with:
platforms: linux/arm64
Expand Down Expand Up @@ -272,7 +272,7 @@ jobs:
outputs: type=image,push=true

- name: Save digest
if: github.ref == 'refs/heads/master'
if: startsWith(github.ref, 'refs/heads/')
run: echo ${{ steps.build.outputs.digest }} > /tmp/digest.txt

- name: Save release digest
Expand Down Expand Up @@ -327,8 +327,8 @@ jobs:
return context.payload.ref.replace(/\/?refs\/tags\/v/, '')
result-encoding: string

- name: Merge and push manifest on master branch
if: github.ref == 'refs/heads/master'
- name: Merge and push manifest on push
if: startsWith(github.ref, 'refs/heads/')
run: python scripts/merge_manifest.py

- name: Merge and push manifest on release
Expand Down
2 changes: 1 addition & 1 deletion scripts/build.alpine.release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ set -xe
#g++ -o base/subconverter $(find CMakeFiles/subconverter.dir/src/ -name "*.o") -static -lpcre2-8 -lyaml-cpp -L/usr/lib64 -lcurl -lmbedtls -lmbedcrypto -lmbedx509 -lz -l:quickjs/libquickjs.a -llibcron -O3 -s

apk add git g++ build-base linux-headers cmake python3 curl unzip p7zip perl
apk add lua5.4-dev luajit-dev mbedtls-dev mbedtls-static zlib-dev
apk add lua5.4-dev luajit-dev zlib-dev curl-dev curl-static
curl -fsSL https://xmake.io/shget.text | bash
source "$HOME/.xmake/profile"

Expand Down
2 changes: 1 addition & 1 deletion xmake/quickjspp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ package("quickjspp")
add_syslinks("pthread", "dl", "m")
end

on_install("linux", "macosx", "windows", function (package)
on_install("linux", "macosx", "mingw", function (package)
local configs = {"-DBUILD_TESTING=OFF"}
-- TODO, disable lto, maybe we need do it better
io.replace("CMakeLists.txt", "set(CMAKE_INTERPROCEDURAL_OPTIMIZATION TRUE)", "", {plain = true})
Expand Down

0 comments on commit 49d72f4

Please sign in to comment.