Skip to content

cleanups

cleanups #16

Workflow file for this run

name: Rust build
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
linux-build:
runs-on: [ubuntu-latest]
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Setup dependencies
run: sudo apt update && sudo apt-get install libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0-dev libspeechd-dev libxkbcommon-dev libssl-dev
- name: Build (release)
run: cargo build --release
- name: Move binary
run: |
mkdir result
cp target/release/explorer-rs result
- name: Upload artifact
uses: actions/upload-artifact@v1.0.0
with:
name: explorer-rs_linux
path: result
windows-build:
runs-on: [windows-latest]
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: |
%userprofile%/.cargo/bin/
%userprofile%/.cargo/registry/index/
%userprofile%/.cargo/registry/cache/
%userprofile%/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Build (release)
run: cargo build --release
- name: Move binary
run: |
mkdir result
copy target/release/explorer-rs.exe result
- name: Upload artifact
uses: actions/upload-artifact@v1.0.0
with:
name: explorer-rs_windows
path: result