Skip to content

Enable LTO and set codegen-units to 1 for release build #43

Enable LTO and set codegen-units to 1 for release build

Enable LTO and set codegen-units to 1 for release build #43

Workflow file for this run

---
name: 'Continuous Integration'
on:
push:
branches:
- 'main'
jobs:
test:
name: 'Test Suite'
runs-on: 'ubuntu-latest'
strategy:
matrix:
# Test against current stable and the MSRV
toolchain-version:
- 'stable'
- '1.65.0'
steps:
- name: 'Checkout'
uses: 'actions/checkout@v2'
with:
fetch-depth: 1
- name: 'Target Cache'
uses: 'actions/cache@v1'
env:
cache-name: 'target-cache'
with:
path: 'target'
key: "${{ matrix.toolchain-version }}-${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('Cargo.lock') }}"
- name: 'Install Toolchain'
uses: 'actions-rs/toolchain@v1'
with:
profile: 'minimal'
toolchain: '${{ matrix.toolchain-version }}'
override: true
- name: 'Run Default Feature Tests'
uses: 'actions-rs/cargo@v1'
with:
command: 'test'
- name: 'Run Cloudwatch Feature Test'
uses: 'actions-rs/cargo@v1'
with:
command: 'test'
args: '--no-default-features --features=cloudwatch'
- name: 'Run S3 Feature Test'
uses: 'actions-rs/cargo@v1'
with:
command: 'test'
args: '--no-default-features --features=s3'
mandoc:
name: 'Lint Man Page'
runs-on: 'ubuntu-latest'
steps:
- name: 'Checkout'
uses: 'actions/checkout@v2'
with:
fetch-depth: 1
- name: 'Install mandoc'
run: |
sudo apt install mandoc
- name: 'Lint man page'
run: |
make manlint