Create binaries for sse2,avx,avx2 for windows #106
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: x86-linux | |
on: | |
workflow_dispatch: | |
push: | |
branches: [ "master", "dev" ] | |
env: | |
BUILD_TYPE: Release | |
BUILD_DIR: build | |
jobs: | |
skip_check: | |
continue-on-error: false | |
runs-on: ubuntu-22.04 | |
outputs: | |
should_skip: ${{ steps.skip_check.outputs.should_skip }} | |
steps: | |
- id: skip_check | |
uses: fkirc/skip-duplicate-actions@v5 | |
with: | |
concurrent_skipping: 'same_content' | |
cancel_others: 'true' | |
skip_after_successful_duplicate: 'true' | |
paths_ignore: '["**/README.md", "**/docs/**", "**/LICENSE.txt", "vcpkg.json", "toolchains/arm/*", "toolchains/windows/*", "toolchains/macos/*"]' | |
do_not_skip: '["workflow_dispatch", "schedule"]' | |
build: | |
needs: skip_check | |
if: needs.skip_check.outputs.should_skip != 'true' | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Update packages | |
run: sudo apt-get update | |
- name: Install packages | |
run: ./toolchains/ubuntu/install_packages.sh | |
- name: Configure CMake | |
run: cmake . -B ${{env.BUILD_DIR}} --preset gcc -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} | |
- name: Build | |
run: cmake --build ${{env.BUILD_DIR}} --config ${{env.BUILD_TYPE}} | |
- name: Upload files (Release) | |
uses: actions/upload-artifact@v3 | |
with: | |
name: dab_radio_linux_x64 | |
path: ${{github.workspace}}/${{env.BUILD_DIR}} |