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

Post Service #130

Merged
merged 13 commits into from
Oct 10, 2023
34 changes: 34 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,12 @@ jobs:
name: Check
runs-on: ubuntu-latest
steps:
- uses: arduino/setup-protoc@v2
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v3
with:
submodules: true
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- run: cargo check --workspace --all-features
Expand Down Expand Up @@ -42,6 +47,8 @@ jobs:

steps:
- uses: actions/checkout@v3
with:
submodules: true
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.toolchain }}
Expand Down Expand Up @@ -86,6 +93,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: true
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt
Expand All @@ -95,7 +104,12 @@ jobs:
clippy:
runs-on: ubuntu-latest
steps:
- uses: arduino/setup-protoc@v2
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v3
with:
submodules: true
- uses: dtolnay/rust-toolchain@master
with:
components: clippy
Expand All @@ -111,6 +125,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: Install stable
uses: dtolnay/rust-toolchain@stable
with:
Expand Down Expand Up @@ -177,6 +193,8 @@ jobs:
name: Install opencl
run: vcpkg install opencl
- uses: actions/checkout@v3
with:
submodules: true
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.toolchain }}
Expand Down Expand Up @@ -226,6 +244,22 @@ jobs:
target/release/profiler${{ matrix.os == 'windows-2019' && '.exe' || '' }}
if-no-files-found: error

- uses: arduino/setup-protoc@v2
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Build service
run: cargo build -p service --release
env:
RUSTFLAGS: ${{ matrix.rustflags }}
SDKROOT: "/Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk"
- name: Archive service artifacts
uses: actions/upload-artifact@v3
with:
name: service-${{ matrix.artifact-name }}${{ steps.version.output.suffix }}
path: |
target/release/service${{ matrix.os == 'windows-2019' && '.exe' || '' }}
if-no-files-found: error

release:
name: Publish release
if: github.event_name == 'push' && github.ref_type == 'tag'
Expand Down
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "service/api"]
path = service/api
url = https://github.com/spacemeshos/api.git
Loading
Loading