Adapted v2 parser to newer v2 changes #226
This file contains hidden or 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
| # SPDX-FileCopyrightText: 2022-2025 RustInFinance | |
| # SPDX-License-Identifier: BSD-3-Clause | |
| on: [pull_request] | |
| name: Continuous integration | |
| jobs: | |
| fmt: | |
| name: Rustfmt | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - uses: actions-rs/toolchain@v1 | |
| with: | |
| profile: minimal | |
| toolchain: stable | |
| override: true | |
| components: rustfmt | |
| - uses: actions-rs/cargo@v1 | |
| with: | |
| command: fmt | |
| args: --all -- --check | |
| build_windows: | |
| name: etradeTaxReturnHelper windows artifacts publish | |
| runs-on: windows-latest | |
| strategy: | |
| matrix: | |
| toolchain: | |
| - stable | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }} | |
| - name: Build | |
| run: mkdir etradeTaxReturnHelper && cargo build --release && dir && dir target\release && xcopy target\release\etradeTaxReturnHelper.exe etradeTaxReturnHelper /R /K /O /Y | |
| - name: Archiving | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: assets-for-download | |
| path: etradeTaxReturnHelper | |
| build_and_test: | |
| name: etradeTaxReturnHelper GUI building | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Install system dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y libx11-dev libxext-dev libxft-dev libxinerama-dev libxcursor-dev libxrender-dev libxfixes-dev libpango1.0-dev | |
| - uses: actions/checkout@v2 | |
| - uses: actions-rs/toolchain@v1 | |
| with: | |
| toolchain: stable | |
| - name: Cargo build | |
| env: | |
| LIBRARY_PATH: ./ | |
| run: | | |
| cargo build --release | |
| - name: Cargo test | |
| env: | |
| LIBRARY_PATH: ./ | |
| run: | | |
| cargo test | |
| build_and_test_no_gui: | |
| name: etradeTaxReturnHelper building | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Install system dependencies | |
| run: | | |
| sudo apt-get update | |
| - uses: actions/checkout@v2 | |
| - uses: actions-rs/toolchain@v1 | |
| with: | |
| toolchain: stable | |
| - name: Cargo build | |
| env: | |
| LIBRARY_PATH: ./ | |
| run: | | |
| cargo build --release --no-default-features | |
| - name: Cargo test | |
| env: | |
| LIBRARY_PATH: ./ | |
| run: | | |
| cargo test --no-default-features | |
| build_and_test_with_gen_exchange_rates: | |
| name: etradeTaxReturnHelper gen_exchange_rates building | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Install system dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y libx11-dev libxext-dev libxft-dev libxinerama-dev libxcursor-dev libxrender-dev libxfixes-dev libpango1.0-dev | |
| - uses: actions/checkout@v2 | |
| - uses: actions-rs/toolchain@v1 | |
| with: | |
| toolchain: stable | |
| - name: Cargo build | |
| env: | |
| LIBRARY_PATH: ./ | |
| run: | | |
| cargo build --release --features gen_exchange_rates |