pipe stderr + use silent mode #571
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
| name: Maxima Build | |
| on: [push] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build: | |
| name: Maxima | |
| runs-on: ${{ matrix.os }} | |
| continue-on-error: ${{ matrix.experimental }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| rust-version: [nightly] | |
| os: [ubuntu-latest, windows-latest] | |
| experimental: [false] | |
| env: | |
| CARGO_TERM_COLOR: always | |
| steps: | |
| - name: Checkout the repo | |
| uses: actions/checkout@v4 | |
| - name: Cache Rust ${{ matrix.rust-version }} | |
| uses: actions/cache@v3 | |
| with: | |
| path: ${{ github.workspace }}\rust\.rustup | |
| key: rust-${{ matrix.rust-version }}-${{ hashFiles('**/rust-toolchain') }} | |
| - name: Setup Rust ${{ matrix.rust-version }} | |
| uses: actions-rs/toolchain@v1 | |
| with: | |
| profile: minimal | |
| toolchain: ${{ matrix.rust-version }} | |
| override: true | |
| components: rustfmt, clippy | |
| - name: Install Protoc | |
| uses: arduino/setup-protoc@v3 | |
| - name: Install Dependencies | |
| id: install-depends | |
| if: runner.os == 'Linux' | |
| run: | | |
| sudo apt-get install -y musl-tools libx11-dev libxcursor-dev libxcb1-dev libxi-dev libxkbcommon-dev libxkbcommon-x11-dev | |
| rustup target add x86_64-unknown-linux-musl | |
| - uses: Swatinem/rust-cache@v2 | |
| with: | |
| shared-key: ${{ runner.os}}-rust-deps | |
| cache-on-failure: true | |
| save-if: ${{ github.ref == 'refs/heads/master' }} | |
| - name: Build Maxima | |
| if: runner.os == 'Windows' | |
| run: | | |
| cargo build --release | |
| - name: Build Maxima | |
| if: runner.os == 'Linux' | |
| run: | | |
| cargo build --release --target x86_64-unknown-linux-musl | |
| env: | |
| RUSTFLAGS: "-C target-feature=+crt-static" | |
| - uses: actions/upload-artifact@v4 | |
| if: runner.os == 'Windows' | |
| with: | |
| name: maxima-x86_64-win64 | |
| path: | | |
| target/release/maxima-service.exe | |
| target/release/maxima-bootstrap.exe | |
| target/release/maxima-cli.exe | |
| target/release/maxima-tui.exe | |
| target/release/maxima.exe | |
| - name: File Permissions | |
| if: runner.os == 'Linux' | |
| run: | | |
| ls -l target/x86_64-unknown-linux-musl/release | |
| chmod +x target/x86_64-unknown-linux-musl/release/maxima-bootstrap | |
| chmod +x target/x86_64-unknown-linux-musl/release/maxima-cli | |
| chmod +x target/x86_64-unknown-linux-musl/release/maxima-tui | |
| chmod +x target/x86_64-unknown-linux-musl/release/maxima | |
| - uses: actions/upload-artifact@v4 | |
| if: runner.os == 'Linux' | |
| with: | |
| name: maxima-x86_64-linux-musl | |
| path: | | |
| target/x86_64-unknown-linux-musl/release/maxima-bootstrap | |
| target/x86_64-unknown-linux-musl/release/maxima-cli | |
| target/x86_64-unknown-linux-musl/release/maxima-tui | |
| target/x86_64-unknown-linux-musl/release/maxima |