|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106 |
- name: Build
-
- on:
- push:
- branches: [ master ]
- paths-ignore:
- - '**.md'
- pull_request:
- branches: [ master ]
- paths-ignore:
- - '**.md'
-
- jobs:
- build_linux:
- runs-on: ubuntu-latest
-
- steps:
- - uses: actions/checkout@v3
- with:
- submodules: 'recursive'
- fetch-depth: 0
-
- - name: Install dependencies
- run: sudo apt-get install cmake git gcc libsndfile-dev libpng-dev
-
- - name: Configure cmake
- run: cmake -B build -DCMAKE_BUILD_TYPE=Release
-
- - name: Build and package
- run: cmake --build build -j$(nproc) && cmake --build build --target package
-
- - name: Upload TGZ package
- uses: actions/upload-artifact@v3
- with:
- name: TGZ package
- path: build/aptdec_*.tar.gz
-
- - name: Upload DEB package
- uses: actions/upload-artifact@v3
- with:
- name: Debian package
- path: build/aptdec_*.deb
-
- build_windows:
- runs-on: ubuntu-latest
-
- steps:
- - uses: actions/checkout@v3
- with:
- submodules: 'recursive'
- fetch-depth: 0
-
- - name: Install dependencies
- run: sudo apt install cmake git mingw-w64 unzip
-
- - name: Run build script
- run: ./build_windows.sh $BUILD_TYPE
-
- - name: Upload ZIP package
- uses: actions/upload-artifact@v3
- with:
- name: ZIP package
- path: winbuild/aptdec_*.zip
-
- build_windows_msvc:
- runs-on: windows-latest
-
- steps:
- - uses: actions/checkout@v3
- with:
- submodules: 'recursive'
- fetch-depth: 0
-
- - name: Run build script
- shell: cmd
- run: '"C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Auxiliary/Build/vcvars64.bat" & build_windows.bat'
-
- - name: Upload ZIP package
- uses: actions/upload-artifact@v3
- with:
- name: ZIP package (MSVC)
- path: winbuild/aptdec_*.zip
-
- build_linux_armhf:
- runs-on: ubuntu-latest
-
- steps:
- - uses: actions/checkout@v3
- with:
- submodules: 'recursive'
- fetch-depth: 0
-
- - name: Run build script
- run: docker run -v $(pwd):/aptdec:z -w /aptdec debian:11 ./build_arm.sh
-
- - name: Upload DEB package
- uses: actions/upload-artifact@v3
- with:
- name: DEB package (ARM)
- path: build/aptdec_*.deb
-
- - name: Upload TGZ package
- uses: actions/upload-artifact@v3
- with:
- name: TGZ package (ARM)
- path: build/aptdec_*.tar.gz
|