Não pode escolher mais do que 25 tópicos
Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
|
- 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
- run: vcvarsx86_amd64 & ./build_windows.bat
-
- - name: Upload ZIP package
- uses: actions/upload-artifact@v3
- with:
- name: ZIP package (MSVC)
- path: winbuild/aptdec_*.zip
|