Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(ci): update workflows #1086

Open
wants to merge 26 commits into
base: master
Choose a base branch
from
Open
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 5 additions & 15 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
path: openspades

- name: Cache vcpkg and dependencies
uses: actions/cache@v2
uses: actions/cache@v3.3.1
with:
path: |
vcpkg/installed
Expand All @@ -29,12 +29,7 @@ jobs:
run: vcpkg/vcpkg install @vcpkg_x86-windows.txt

- name: Build application
uses: ashutoshvarma/action-cmake-build@master
with:
build-dir: ${{ runner.workspace }}/openspades.mk
build-type: RelWithDebInfo
configure-options: -A Win32 -D CMAKE_BUILD_TYPE=RelWithDebInfo -D CMAKE_TOOLCHAIN_FILE=${{ runner.workspace }}/openspades/vcpkg/scripts/buildsystems/vcpkg.cmake -D VCPKG_TARGET_TRIPLET=x86-windows-static
parallel: 8
run: mkdir "${{ runner.workspace }}/openspades.mk"; cd "${{ runner.workspace }}/openspades.mk"; cmake .. -A Win32 -D CMAKE_BUILD_TYPE=RelWithDebInfo -D CMAKE_TOOLCHAIN_FILE=${{ runner.workspace }}/openspades/vcpkg/scripts/buildsystems/vcpkg.cmake -D VCPKG_TARGET_TRIPLET=x86-windows-static
nonperforming marked this conversation as resolved.
Show resolved Hide resolved

build-macos:
name: Build (macOS)
Expand All @@ -47,7 +42,7 @@ jobs:
path: openspades

- name: Cache vcpkg and dependencies
uses: actions/cache@v2
uses: actions/cache@v3.3.1
with:
path: |
vcpkg/installed
Expand All @@ -61,12 +56,7 @@ jobs:
run: vcpkg/vcpkg install @vcpkg_x86_64-darwin.txt

- name: Build application
uses: ashutoshvarma/action-cmake-build@master
with:
build-dir: ${{ runner.workspace }}/openspades.mk
build-type: RelWithDebInfo
configure-options: -D CMAKE_BUILD_TYPE=RelWithDebInfo -D CMAKE_TOOLCHAIN_FILE=${{ runner.workspace }}/openspades/vcpkg/scripts/buildsystems/vcpkg.cmake -D VCPKG_TARGET_TRIPLET=x64-osx -D CMAKE_OSX_ARCHITECTURES=x86_64
parallel: 8
run: mkdir "${{ runner.workspace }}/openspades.mk"; cd "${{ runner.workspace }}/openspades.mk"; cmake .. -CMAKE_BUILD_TYPE RelWithDebInfo -D CMAKE_TOOLCHAIN_FILE=${{ runner.workspace }}/openspades/vcpkg/scripts/buildsystems/vcpkg.cmake -D VCPKG_TARGET_TRIPLET=x64-osx -D CMAKE_OSX_ARCHITECTURES=x86_64

build-nix:
name: Build (Linux + Nix)
Expand All @@ -76,7 +66,7 @@ jobs:
uses: actions/checkout@v3

- name: Install Nix
uses: cachix/install-nix-action@v17
uses: cachix/install-nix-action@v18

- name: Build Nix flake
run: nix build
Expand Down