Você não pode selecionar mais de 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'
-
- - 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/aptdec_*.tar.gz
-
- - name: Upload DEB package
- uses: actions/upload-artifact@v3
- with:
- name: Debian package
- path: build/aptdec/aptdec_*.deb
-
- build_windows:
- runs-on: ubuntu-latest
-
- steps:
- - uses: actions/checkout@v3
- with:
- submodules: 'recursive'
-
- - 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: build/aptdec/aptdec_*.zip
|