Skip to content

Commit

Permalink
indention
Browse files Browse the repository at this point in the history
  • Loading branch information
martintc committed Nov 8, 2023
1 parent 4052d46 commit ce08c11
Showing 1 changed file with 119 additions and 119 deletions.
238 changes: 119 additions & 119 deletions .github/workflows/main-2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,125 +6,125 @@ on:
# for main.yaml to solve issues with generating
# cross compiled binaries

env:
MIN_SUPPORTED_RUST_VERSION: "1.70.0"
CICD_INTERMEDIATES_DIR: "_cicd-intermediates"
CARGO_TERM_COLOR: always
#Fix these up soon
#RUSTFLAGS: "-D warnings"

jobs:
# lint-test-release:
# runs-on: ubuntu-22.04
# steps:
# - name: Clone Repository
# uses: actions/checkout@v4

# - name: Install Rust Toolchain (v${{ env.MIN_SUPPORTED_RUST_VERSION }})
# uses: actions-rs/toolchain@v1
# with:
# toolchain: ${{ env.MIN_SUPPORTED_RUST_VERSION }}
# default: true
# profile: minimal
# components: clippy

# - uses: actions-rs/clippy-check@v1
# with:
# token: ${{ secrets.GITHUB_TOKEN }}
# args: --all-features --all-targets

# - name: Run Tests
# uses: actions-rs/cargo@v1
# with:
# command: test

# - name: Run Tarpaulin
# uses: actions-rs/[email protected]
# with:
# version: "0.22.0"
# args: "--workspace -- --test-threads 1"

# - name: Upload to codecov.io
# uses: codecov/codecov-action@v3

# - name: Check for Release
# id: is-release
# shell: bash
# run: |
# unset IS_RELEASE ; if [[ $GITHUB_REF =~ ^refs/tags/v[0-9].* ]]; then IS_RELEASE='true' ; fi
# echo ::set-output name=IS_RELEASE::${IS_RELEASE}

# - name: Cargo Publish "comtrya-lib"
# if: steps.is-release.outputs.IS_RELEASE
# run: cargo publish -p comtrya-lib --token ${CRATES_TOKEN}
# env:
# CRATES_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}

# - name: Cargo Publish "comtrya"
# if: steps.is-release.outputs.IS_RELEASE
# run: cargo publish -p comtrya --token ${CRATES_TOKEN}
# env:
# CRATES_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}

build:
name: Build-${{ matrix.platform.target }}
runs-on: ${{ matrix.platform.os }}
strategy:
fail-fast: false
matrix:
platform:
- os_name: Linux-x86_64-gnu
os: ubuntu-22.04
target: x86_64-unknown-linux-gnu
bin: comtrya
name: comtry-x86_64-unknown-linux-gnu
cross: false
cargo_command: cargo
skip_tests: false
- os_name: Linux-aarch64-gnu
os: ubuntu-22.04
target: aarch64-unknown-linux-gnu
bin: comtrya
name: comtry-aarch64-unknown-linux-gnu
cross: false
cargo_command: ./cross
skip_tests: true
- os_name: Windows-x86_64
os: windows-2022
target: x86_64-pc-winfows-msvc
bin: comtrya
name: comtry-x86_64-pc-winfows-msvc
cross: false
cargo_command: cargo
skip_tests: false
- os_name: macOS-x86_64
os: macos-12
target: x86_64-apple-darwin
bin: comtrya
name: comtry-x86_64-apple-darwin
cross: false
cargo_command: cargo
skip_tests: false
- os_name: macOS-aarch64
os: macos-12
target: aarch64-apple-darwin
bin: comtrya
name: comtry-aarch64-apple-darwin
cross: true
cargo_command: ./cross
skip_tests: true
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Build binary
uses: houseabsolute/actions-rust-cross@v0
with:
command: "build"
target: ${{ matrix.platform.target }}
toolchain: stable
args: "--locked --release"
strip: true
env:
MIN_SUPPORTED_RUST_VERSION: "1.70.0"
CICD_INTERMEDIATES_DIR: "_cicd-intermediates"
CARGO_TERM_COLOR: always
#Fix these up soon
#RUSTFLAGS: "-D warnings"

jobs:
# lint-test-release:
# runs-on: ubuntu-22.04
# steps:
# - name: Clone Repository
# uses: actions/checkout@v4

# - name: Install Rust Toolchain (v${{ env.MIN_SUPPORTED_RUST_VERSION }})
# uses: actions-rs/toolchain@v1
# with:
# toolchain: ${{ env.MIN_SUPPORTED_RUST_VERSION }}
# default: true
# profile: minimal
# components: clippy

# - uses: actions-rs/clippy-check@v1
# with:
# token: ${{ secrets.GITHUB_TOKEN }}
# args: --all-features --all-targets

# - name: Run Tests
# uses: actions-rs/cargo@v1
# with:
# command: test

# - name: Run Tarpaulin
# uses: actions-rs/[email protected]
# with:
# version: "0.22.0"
# args: "--workspace -- --test-threads 1"

# - name: Upload to codecov.io
# uses: codecov/codecov-action@v3

# - name: Check for Release
# id: is-release
# shell: bash
# run: |
# unset IS_RELEASE ; if [[ $GITHUB_REF =~ ^refs/tags/v[0-9].* ]]; then IS_RELEASE='true' ; fi
# echo ::set-output name=IS_RELEASE::${IS_RELEASE}

# - name: Cargo Publish "comtrya-lib"
# if: steps.is-release.outputs.IS_RELEASE
# run: cargo publish -p comtrya-lib --token ${CRATES_TOKEN}
# env:
# CRATES_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}

# - name: Cargo Publish "comtrya"
# if: steps.is-release.outputs.IS_RELEASE
# run: cargo publish -p comtrya --token ${CRATES_TOKEN}
# env:
# CRATES_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}

build:
name: Build-${{ matrix.platform.target }}
runs-on: ${{ matrix.platform.os }}
strategy:
fail-fast: false
matrix:
platform:
- os_name: Linux-x86_64-gnu
os: ubuntu-22.04
target: x86_64-unknown-linux-gnu
bin: comtrya
name: comtry-x86_64-unknown-linux-gnu
cross: false
cargo_command: cargo
skip_tests: false
- os_name: Linux-aarch64-gnu
os: ubuntu-22.04
target: aarch64-unknown-linux-gnu
bin: comtrya
name: comtry-aarch64-unknown-linux-gnu
cross: false
cargo_command: ./cross
skip_tests: true
- os_name: Windows-x86_64
os: windows-2022
target: x86_64-pc-winfows-msvc
bin: comtrya
name: comtry-x86_64-pc-winfows-msvc
cross: false
cargo_command: cargo
skip_tests: false
- os_name: macOS-x86_64
os: macos-12
target: x86_64-apple-darwin
bin: comtrya
name: comtry-x86_64-apple-darwin
cross: false
cargo_command: cargo
skip_tests: false
- os_name: macOS-aarch64
os: macos-12
target: aarch64-apple-darwin
bin: comtrya
name: comtry-aarch64-apple-darwin
cross: true
cargo_command: ./cross
skip_tests: true
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Build binary
uses: houseabsolute/actions-rust-cross@v0
with:
command: "build"
target: ${{ matrix.platform.target }}
toolchain: stable
args: "--locked --release"
strip: true



Expand Down

0 comments on commit ce08c11

Please sign in to comment.