mirror of
https://github.com/NohamR/N_m3u8DL-RE.git
synced 2025-05-24 00:48:58 +00:00
Update build_latest.yml
This commit is contained in:
parent
d0896c706c
commit
0eec4598a2
78
.github/workflows/build_latest.yml
vendored
78
.github/workflows/build_latest.yml
vendored
@ -113,51 +113,51 @@ jobs:
|
||||
name: win-arm64
|
||||
path: N_m3u8DL-RE_${{ needs.set-date.outputs.tag }}_win-arm64_${{ needs.set-date.outputs.date }}.zip
|
||||
|
||||
build-linux-x64-arm64:
|
||||
runs-on: ubuntu-latest
|
||||
needs: set-date
|
||||
# build-linux-x64-arm64:
|
||||
# runs-on: ubuntu-latest
|
||||
# needs: set-date
|
||||
|
||||
steps:
|
||||
# https://learn.microsoft.com/zh-cn/dotnet/core/deploying/native-aot/cross-compile
|
||||
- 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-get update
|
||||
sudo apt-get install -y curl wget libicu-dev libcurl4-openssl-dev zlib1g-dev libkrb5-dev clang llvm binutils-aarch64-linux-gnu gcc-aarch64-linux-gnu zlib1g-dev:arm64
|
||||
# steps:
|
||||
# # https://learn.microsoft.com/zh-cn/dotnet/core/deploying/native-aot/cross-compile
|
||||
# - 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-get update
|
||||
# sudo apt-get install -y curl wget libicu-dev libcurl4-openssl-dev zlib1g-dev libkrb5-dev clang llvm binutils-aarch64-linux-gnu gcc-aarch64-linux-gnu zlib1g-dev:arm64
|
||||
|
||||
- uses: actions/checkout@v1
|
||||
- name: Set up dotnet
|
||||
uses: actions/setup-dotnet@v3
|
||||
with:
|
||||
dotnet-version: ${{ env.DOTNET_SDK_VERSION }}
|
||||
# - uses: actions/checkout@v1
|
||||
# - name: Set up dotnet
|
||||
# uses: actions/setup-dotnet@v3
|
||||
# with:
|
||||
# dotnet-version: ${{ env.DOTNET_SDK_VERSION }}
|
||||
|
||||
- run: dotnet publish src/N_m3u8DL-RE -r linux-x64 -c Release -o artifact
|
||||
- run: dotnet publish src/N_m3u8DL-RE -r linux-arm64 -c Release -o artifact-arm64
|
||||
# - run: dotnet publish src/N_m3u8DL-RE -r linux-x64 -c Release -o artifact
|
||||
# - run: dotnet publish src/N_m3u8DL-RE -r linux-arm64 -c Release -o artifact-arm64
|
||||
|
||||
- name: Package [linux]
|
||||
run: |
|
||||
cd artifact
|
||||
tar -czvf ../N_m3u8DL-RE_${{ needs.set-date.outputs.tag }}_linux-x64_${{ needs.set-date.outputs.date }}.tar.gz N_m3u8DL-RE
|
||||
cd ../artifact-arm64
|
||||
tar -czvf ../N_m3u8DL-RE_${{ needs.set-date.outputs.tag }}_linux-arm64_${{ needs.set-date.outputs.date }}.tar.gz N_m3u8DL-RE
|
||||
# - name: Package [linux]
|
||||
# run: |
|
||||
# cd artifact
|
||||
# tar -czvf ../N_m3u8DL-RE_${{ needs.set-date.outputs.tag }}_linux-x64_${{ needs.set-date.outputs.date }}.tar.gz N_m3u8DL-RE
|
||||
# cd ../artifact-arm64
|
||||
# tar -czvf ../N_m3u8DL-RE_${{ needs.set-date.outputs.tag }}_linux-arm64_${{ needs.set-date.outputs.date }}.tar.gz N_m3u8DL-RE
|
||||
|
||||
- name: Upload Artifact [linux-x64]
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: linux-x64
|
||||
path: N_m3u8DL-RE_${{ needs.set-date.outputs.tag }}_linux-x64_${{ needs.set-date.outputs.date }}.tar.gz
|
||||
# - name: Upload Artifact [linux-x64]
|
||||
# uses: actions/upload-artifact@v4
|
||||
# with:
|
||||
# name: linux-x64
|
||||
# path: N_m3u8DL-RE_${{ needs.set-date.outputs.tag }}_linux-x64_${{ needs.set-date.outputs.date }}.tar.gz
|
||||
|
||||
- name: Upload Artifact[linux-arm64]
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: linux-arm64
|
||||
path: N_m3u8DL-RE_${{ needs.set-date.outputs.tag }}_linux-arm64_${{ needs.set-date.outputs.date }}.tar.gz
|
||||
# - name: Upload Artifact[linux-arm64]
|
||||
# uses: actions/upload-artifact@v4
|
||||
# with:
|
||||
# name: linux-arm64
|
||||
# path: N_m3u8DL-RE_${{ needs.set-date.outputs.tag }}_linux-arm64_${{ needs.set-date.outputs.date }}.tar.gz
|
||||
|
||||
build-android-bionic-x64-arm64:
|
||||
runs-on: windows-latest
|
||||
|
Loading…
x
Reference in New Issue
Block a user