Skip to content

Commit

Permalink
fix: update relase
Browse files Browse the repository at this point in the history
Signed-off-by: Junjie Gao <[email protected]>
  • Loading branch information
JeyJeyGao committed Mar 29, 2024
1 parent 51bc2ab commit 385ed8d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ jobs:
build_args: --enable-aot
os: ubuntu-latest
- runtime: linux-arm64
build_args: ""
os: ubuntu-latest
build_args: --enable-aot
os: ubuntu-22.04
- runtime: win-x64
build_args: --enable-aot
os: windows-2022
Expand All @@ -41,6 +41,19 @@ jobs:
uses: actions/setup-dotnet@v3
with:
dotnet-version: '8.0.x'
- name: Setup ARM Emulator
if: matrix.config.runtime == 'linux-arm64'
run: |
sudo dpkg --add-architecture arm64
sudo bash -c 'cat > /etc/apt/sources.list.d/arm64.list <<EOF
deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ jammy main restricted
deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ jammy-updates main restricted
deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ jammy-backports main restricted universe multiverse
EOF'
sudo sed -i -e 's/deb http/deb [arch=amd64] http/g' /etc/apt/sources.list
sudo sed -i -e 's/deb mirror/deb [arch=amd64] mirror/g' /etc/apt/sources.list
sudo apt update
sudo apt install -y clang llvm binutils-aarch64-linux-gnu gcc-aarch64-linux-gnu zlib1g-dev:arm64
- name: Build .NET project
shell: bash
run: python3 ./scripts/build.py "${GITHUB_REF_NAME}" ${{ matrix.config.runtime }} ${{ matrix.config.build_args }}
Expand Down
1 change: 0 additions & 1 deletion scripts/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ def main():
publish_command.append("-p:PublishAot=true")
else:
publish_command.append("-p:PublishSingleFile=true")
publish_command.append("-p:PublishTrimmed=true")

# Publish for each runtime
subprocess.run(publish_command, check=True)
Expand Down

0 comments on commit 385ed8d

Please sign in to comment.