Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
spvkgn committed Sep 22, 2024
1 parent a957ff9 commit c183fd4
Showing 1 changed file with 44 additions and 41 deletions.
85 changes: 44 additions & 41 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: build
on:
workflow_dispatch:
push:
branches: [main]
# branches: [main]

jobs:
build:
Expand All @@ -13,44 +13,44 @@ jobs:
fail-fast: false
matrix:
include:
- arch: arm64
tool: aarch64-unknown-linux-musl
- arch: arm
tool: arm-unknown-linux-musleabi
- arch: armhf
tool: arm-unknown-linux-musleabihf
- arch: armv7
tool: armv7-unknown-linux-musleabi
- arch: armv7hf
tool: armv7-unknown-linux-musleabihf
- arch: loong64
tool: loongarch64-unknown-linux-musl
- arch: m68k
tool: m68k-unknown-linux-musl
- arch: mips64el
tool: mips64el-unknown-linux-musl
- arch: mips64
tool: mips64-unknown-linux-musl
- arch: mipsel
tool: mipsel-unknown-linux-musl
- arch: mipselsf
tool: mipsel-unknown-linux-muslsf
- arch: mips
tool: mips-unknown-linux-musl
- arch: mipssf
tool: mips-unknown-linux-muslsf
- arch: powerpc64
tool: powerpc64-unknown-linux-musl
- arch: powerpc
tool: powerpc-unknown-linux-musl
- arch: riscv
tool: riscv32-unknown-linux-musl
- arch: riscv64
tool: riscv64-unknown-linux-musl
- arch: s390x
tool: s390x-ibm-linux-musl
- arch: sh
tool: sh-multilib-linux-musl
# - arch: arm64
# tool: aarch64-unknown-linux-musl
# - arch: arm
# tool: arm-unknown-linux-musleabi
# - arch: armhf
# tool: arm-unknown-linux-musleabihf
# - arch: armv7
# tool: armv7-unknown-linux-musleabi
# - arch: armv7hf
# tool: armv7-unknown-linux-musleabihf
# - arch: loong64
# tool: loongarch64-unknown-linux-musl
# - arch: m68k
# tool: m68k-unknown-linux-musl
# - arch: mips64el
# tool: mips64el-unknown-linux-musl
# - arch: mips64
# tool: mips64-unknown-linux-musl
# - arch: mipsel
# tool: mipsel-unknown-linux-musl
# - arch: mipselsf
# tool: mipsel-unknown-linux-muslsf
# - arch: mips
# tool: mips-unknown-linux-musl
# - arch: mipssf
# tool: mips-unknown-linux-muslsf
# - arch: ppc64
# tool: powerpc64-unknown-linux-musl
# - arch: ppc
# tool: powerpc-unknown-linux-musl
# - arch: riscv
# tool: riscv32-unknown-linux-musl
# - arch: riscv64
# tool: riscv64-unknown-linux-musl
# - arch: s390x
# tool: s390x-ibm-linux-musl
# - arch: sh
# tool: sh-multilib-linux-musl
- arch: x86
tool: x86_64-multilib-linux-musl
env:
Expand Down Expand Up @@ -83,12 +83,13 @@ jobs:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
COMMIT_SHA=$(gh api repos/${{ github.repository }}/commits/main --jq '.sha[:7]')
CC="$TOOL-gcc -static-libgcc -static" \
CC=$TOOL-gcc \
LD=$TOOL-ld \
AR=$TOOL-ar \
NM=$TOOL-nm \
STRIP=$TOOL-strip \
CFLAGS=$CFLAGS LDFLAGS=$LDFLAGS \
CFLAGS="-static-libgcc -static $CFLAGS" \
LDFLAGS="-static-libgcc -static $LDFLAGS" \
make V=s -j$(nproc) || exit 1
$TOOL-strip -s ciadpi
[ -x ciadpi ] && tar -cJvf byedpi-$COMMIT_SHA-$ARCH.tar.xz ciadpi
Expand All @@ -101,6 +102,7 @@ jobs:
path: ./**/byedpi-*.tar.xz

release:
if: false
needs: build
permissions:
contents: write
Expand All @@ -123,6 +125,7 @@ jobs:
with:
fail_on_unmatched_files: true
prerelease: false
draft: false
tag_name: ${{ env.tag_name }}
name: ${{ env.DATE }}
target_commitish : main
Expand Down

0 comments on commit c183fd4

Please sign in to comment.