mirror of https://github.com/aria2/aria2
Update build.yml
parent
0e141811da
commit
571b0a213a
|
@ -3,6 +3,28 @@ name: build
|
|||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
build-windows:
|
||||
strategy:
|
||||
matrix:
|
||||
host: [i686-w64-mingw32, x86_64-w64-mingw32]
|
||||
runs-on: ubuntu-22.04
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Build aria2
|
||||
run: |
|
||||
docker build --build-arg HOST=${{ matrix.host }} -t aria2-mingw -f ./Dockerfile.mingw .
|
||||
docker run --rm -v .:/out aria2-mingw cp /aria2/src/aria2c.exe /out
|
||||
|
||||
- name: Upload build artifact
|
||||
uses: actions/upload-artifact@v4.3.1
|
||||
with:
|
||||
name: aria2-${{ matrix.host }}
|
||||
path: ./aria2c.exe
|
||||
|
||||
|
||||
build:
|
||||
strategy:
|
||||
matrix:
|
||||
|
@ -19,7 +41,7 @@ jobs:
|
|||
runs-on: ${{ matrix.os }}
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4.1.1
|
||||
- name: Linux setup
|
||||
if: runner.os == 'Linux'
|
||||
run: |
|
||||
|
|
|
@ -30,7 +30,7 @@ RUN apt-get update && \
|
|||
autopoint libcppunit-dev libxml2-dev libgcrypt20-dev lzip \
|
||||
python3-docutils
|
||||
|
||||
RUN curl -L -O https://gmplib.org/download/gmp/gmp-6.3.0.tar.xz && \
|
||||
RUN curl -L -O https://ftp.gnu.org/gnu/gmp/gmp-6.3.0.tar.xz && \
|
||||
curl -L -O https://github.com/libexpat/libexpat/releases/download/R_2_6_0/expat-2.6.0.tar.bz2 && \
|
||||
curl -L -O https://www.sqlite.org/2024/sqlite-autoconf-3450100.tar.gz && \
|
||||
curl -L -O https://github.com/madler/zlib/releases/download/v1.3.1/zlib-1.3.1.tar.gz && \
|
||||
|
|
Loading…
Reference in New Issue