mirror of
https://github.com/wez/wezterm.git
synced 2024-09-19 02:37:51 +03:00
d644a78699
* take a stab at fixing the windows CI to generate 64-bit * use actions-rs/toolchain more broadly * fixup target dir for deploy script * cut over to the rust action for installing rust
68 lines
1.7 KiB
YAML
68 lines
1.7 KiB
YAML
name: fedora
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
pull_request:
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
build:
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
container: ["fedora:31"]
|
|
rust_toolchain: [stable]
|
|
runs-on: ubuntu-latest
|
|
container: ${{ matrix.container }}
|
|
steps:
|
|
- name: Install Git
|
|
shell: bash
|
|
run: |
|
|
sudo yum install -y git
|
|
- uses: actions/checkout@v1
|
|
- name: Install System Deps
|
|
run: sudo ./get-deps
|
|
- name: Install Rust
|
|
uses: actions-rs/toolchain@v1
|
|
with:
|
|
profile: minimal
|
|
toolchain: ${{ matrix.rust_toolchain }}
|
|
override: true
|
|
- name: Show versions
|
|
run: |
|
|
rustc -V
|
|
cargo -V
|
|
- name: Cache cargo registry
|
|
uses: actions/cache@v1
|
|
with:
|
|
path: ~/.cargo/registry
|
|
key: ${{ matrix.container }}-${{ matrix.rust_toolchain }}-cargo-registry-${{ hashFiles('Cargo.lock') }}
|
|
- name: Cache cargo index
|
|
uses: actions/cache@v1
|
|
with:
|
|
path: ~/.cargo/git
|
|
key: ${{ matrix.container }}-${{ matrix.rust_toolchain }}-cargo-index-${{ hashFiles('Cargo.lock') }}
|
|
- name: Cache cargo build
|
|
uses: actions/cache@v1
|
|
with:
|
|
path: target
|
|
key: ${{ matrix.container }}-${{ matrix.rust_toolchain }}-cargo-build-target-${{ hashFiles('Cargo.lock') }}
|
|
- name: Build
|
|
run: cargo build --all --release
|
|
- name: Test
|
|
run: cargo test --all --release
|
|
- name: Package
|
|
run: bash ci/deploy.sh
|
|
- name: Move Linux Package
|
|
run: |
|
|
mkdir pkg_
|
|
mv ~/rpmbuild/RPMS/*/*.rpm pkg_
|
|
- uses: actions/upload-artifact@master
|
|
with:
|
|
name: linux
|
|
path: pkg_
|
|
|