Skip to content

Commit

Permalink
Fix/cbid 3954 upgrade time crate to fix nightly (locka99#4)
Browse files Browse the repository at this point in the history
* Cherry-picked: Upgrade to latest Actix Web and also fix some broken logic in demo server

* Cherry-picked: Remove time crate and cleanup some time functions (locka99#260)

* Cherry-picked: Fix a failing test

* enable workflow

* temporary remove samples/web-client from workspace

* support nightly in workflows
  • Loading branch information
luander committed Aug 14, 2024
1 parent 9f2f260 commit 0fde803
Show file tree
Hide file tree
Showing 28 changed files with 1,264 additions and 2,049 deletions.
46 changes: 31 additions & 15 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,35 +1,51 @@
name: OPC UA for Rust

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
branches:
- main

env:
CARGO_TERM_COLOR: always

jobs:
build-linux:
runs-on: ubuntu-latest
name: OPC UA for Rust - ${{ matrix.toolchain }}

strategy:
matrix:
toolchain: [ nightly, stable ]
platform: [ ubuntu-latest ]
runs-on: ${{ matrix.platform }}

steps:
- uses: actions/checkout@v3
- name: Install Rust
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.toolchain }}

- name: Checkout code
uses: actions/checkout@v4

- name: Build
run: cargo build --features test-vendored-openssl

- name: Run tests
run: cargo test --features test-vendored-openssl --verbose

- name: Run integration tests
run: |
cd integration
sh ./run.sh
build-windows:
runs-on: windows-latest
env:
VCPKGRS_DYNAMIC: 1
steps:
- uses: actions/checkout@v3
- name: Build
run: cargo build --features test-vendored-openssl
- name: Run tests
run: cargo test --features test-vendored-openssl --verbose
## Note: We don't rely on windows, so let's save some compute
# build-windows:
# runs-on: windows-latest
# env:
# VCPKGRS_DYNAMIC: 1
# steps:
# - uses: actions/checkout@v3
# - name: Build
# run: cargo build --features test-vendored-openssl
# - name: Run tests
# run: cargo test --features test-vendored-openssl --verbose
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ log/
/samples/server.test.conf
/integration/pki-client
/integration/pki-server
3rd-party/open62541/build/
Loading

0 comments on commit 0fde803

Please sign in to comment.