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
|
name: win-arm64
|
||||||
path: N_m3u8DL-RE_${{ needs.set-date.outputs.tag }}_win-arm64_${{ needs.set-date.outputs.date }}.zip
|
path: N_m3u8DL-RE_${{ needs.set-date.outputs.tag }}_win-arm64_${{ needs.set-date.outputs.date }}.zip
|
||||||
|
|
||||||
build-linux-x64-arm64:
|
# build-linux-x64-arm64:
|
||||||
runs-on: ubuntu-latest
|
# runs-on: ubuntu-latest
|
||||||
needs: set-date
|
# needs: set-date
|
||||||
|
|
||||||
steps:
|
# steps:
|
||||||
# https://learn.microsoft.com/zh-cn/dotnet/core/deploying/native-aot/cross-compile
|
# # https://learn.microsoft.com/zh-cn/dotnet/core/deploying/native-aot/cross-compile
|
||||||
- run: |
|
# - run: |
|
||||||
sudo dpkg --add-architecture arm64
|
# sudo dpkg --add-architecture arm64
|
||||||
sudo bash -c 'cat > /etc/apt/sources.list.d/arm64.list <<EOF
|
# 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 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-updates main restricted
|
||||||
deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ jammy-backports main restricted universe multiverse
|
# deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ jammy-backports main restricted universe multiverse
|
||||||
EOF'
|
# EOF'
|
||||||
sudo sed -i -e 's/deb http/deb [arch=amd64] http/g' /etc/apt/sources.list
|
# 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 sed -i -e 's/deb mirror/deb [arch=amd64] mirror/g' /etc/apt/sources.list
|
||||||
sudo apt-get update
|
# 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
|
# 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
|
# - uses: actions/checkout@v1
|
||||||
- name: Set up dotnet
|
# - name: Set up dotnet
|
||||||
uses: actions/setup-dotnet@v3
|
# uses: actions/setup-dotnet@v3
|
||||||
with:
|
# with:
|
||||||
dotnet-version: ${{ env.DOTNET_SDK_VERSION }}
|
# 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-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-arm64 -c Release -o artifact-arm64
|
||||||
|
|
||||||
- name: Package [linux]
|
# - name: Package [linux]
|
||||||
run: |
|
# run: |
|
||||||
cd artifact
|
# cd artifact
|
||||||
tar -czvf ../N_m3u8DL-RE_${{ needs.set-date.outputs.tag }}_linux-x64_${{ needs.set-date.outputs.date }}.tar.gz N_m3u8DL-RE
|
# 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
|
# 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
|
# 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]
|
# - name: Upload Artifact [linux-x64]
|
||||||
uses: actions/upload-artifact@v4
|
# uses: actions/upload-artifact@v4
|
||||||
with:
|
# with:
|
||||||
name: linux-x64
|
# name: linux-x64
|
||||||
path: N_m3u8DL-RE_${{ needs.set-date.outputs.tag }}_linux-x64_${{ needs.set-date.outputs.date }}.tar.gz
|
# path: N_m3u8DL-RE_${{ needs.set-date.outputs.tag }}_linux-x64_${{ needs.set-date.outputs.date }}.tar.gz
|
||||||
|
|
||||||
- name: Upload Artifact[linux-arm64]
|
# - name: Upload Artifact[linux-arm64]
|
||||||
uses: actions/upload-artifact@v4
|
# uses: actions/upload-artifact@v4
|
||||||
with:
|
# with:
|
||||||
name: linux-arm64
|
# name: linux-arm64
|
||||||
path: N_m3u8DL-RE_${{ needs.set-date.outputs.tag }}_linux-arm64_${{ needs.set-date.outputs.date }}.tar.gz
|
# path: N_m3u8DL-RE_${{ needs.set-date.outputs.tag }}_linux-arm64_${{ needs.set-date.outputs.date }}.tar.gz
|
||||||
|
|
||||||
build-android-bionic-x64-arm64:
|
build-android-bionic-x64-arm64:
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
|
Loading…
x
Reference in New Issue
Block a user