Skip to content

Commit

Permalink
comment out rest of builds
Browse files Browse the repository at this point in the history
  • Loading branch information
Schniz committed Mar 8, 2021
1 parent 869fb12 commit 4aeaf58
Showing 1 changed file with 90 additions and 90 deletions.
180 changes: 90 additions & 90 deletions .github/workflows/rust.yml
Expand Up @@ -7,101 +7,101 @@ on:
- master

jobs:
fmt:
runs-on: ubuntu-latest
steps:
- uses: hecrj/setup-rust-action@v1
with:
rust-version: stable
- uses: actions/checkout@v2
- name: cargo fmt
run: cargo fmt -- --check
# fmt:
# runs-on: ubuntu-latest
# steps:
# - uses: hecrj/setup-rust-action@v1
# with:
# rust-version: stable
# - uses: actions/checkout@v2
# - name: cargo fmt
# run: cargo fmt -- --check

unit_tests:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macOS-latest, windows-latest]
steps:
- uses: hecrj/setup-rust-action@v1
with:
rust-version: stable
- uses: actions/checkout@v2
- name: Run tests
run: cargo test -- --skip=feature_tests
# unit_tests:
# runs-on: ${{ matrix.os }}
# strategy:
# matrix:
# os: [ubuntu-latest, macOS-latest, windows-latest]
# steps:
# - uses: hecrj/setup-rust-action@v1
# with:
# rust-version: stable
# - uses: actions/checkout@v2
# - name: Run tests
# run: cargo test -- --skip=feature_tests

e2e_tests:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macOS-latest, windows-latest]
steps:
- name: Install Fish and Zsh using brew
if: "startsWith(matrix.os, 'macOS')"
run: brew install fish zsh
- name: Install Fish and Zsh using apt
if: "startsWith(matrix.os, 'ubuntu')"
run: sudo apt-get install -y fish zsh
- uses: hecrj/setup-rust-action@v1
with:
rust-version: stable
- uses: actions/checkout@v2
- name: Run tests
run: cargo test -- feature_tests
# e2e_tests:
# runs-on: ${{ matrix.os }}
# strategy:
# matrix:
# os: [ubuntu-latest, macOS-latest, windows-latest]
# steps:
# - name: Install Fish and Zsh using brew
# if: "startsWith(matrix.os, 'macOS')"
# run: brew install fish zsh
# - name: Install Fish and Zsh using apt
# if: "startsWith(matrix.os, 'ubuntu')"
# run: sudo apt-get install -y fish zsh
# - uses: hecrj/setup-rust-action@v1
# with:
# rust-version: stable
# - uses: actions/checkout@v2
# - name: Run tests
# run: cargo test -- feature_tests

build_release:
runs-on: windows-latest
name: "Release build for Windows"
steps:
- uses: hecrj/setup-rust-action@v1
with:
rust-version: stable
- uses: actions/checkout@v2
- name: Build release binary
run: cargo build --release
env:
RUSTFLAGS: "-C target-feature=+crt-static"
- uses: actions/upload-artifact@v2
with:
name: fnm-windows
path: target/release/fnm.exe
# build_release:
# runs-on: windows-latest
# name: "Release build for Windows"
# steps:
# - uses: hecrj/setup-rust-action@v1
# with:
# rust-version: stable
# - uses: actions/checkout@v2
# - name: Build release binary
# run: cargo build --release
# env:
# RUSTFLAGS: "-C target-feature=+crt-static"
# - uses: actions/upload-artifact@v2
# with:
# name: fnm-windows
# path: target/release/fnm.exe

build_macos_release:
runs-on: macOS-latest
name: "Release build for macOS"
steps:
- uses: hecrj/setup-rust-action@v1
with:
rust-version: stable
- uses: actions/checkout@v2
- name: Build release binary
run: cargo build --release
env:
LZMA_API_STATIC: "true"
- name: Strip binary from debug symbols
run: strip target/release/fnm
- name: List dynamically linked libraries
run: otool -L target/release/fnm
- uses: actions/upload-artifact@v2
with:
name: fnm-macos
path: target/release/fnm
# build_macos_release:
# runs-on: macOS-latest
# name: "Release build for macOS"
# steps:
# - uses: hecrj/setup-rust-action@v1
# with:
# rust-version: stable
# - uses: actions/checkout@v2
# - name: Build release binary
# run: cargo build --release
# env:
# LZMA_API_STATIC: "true"
# - name: Strip binary from debug symbols
# run: strip target/release/fnm
# - name: List dynamically linked libraries
# run: otool -L target/release/fnm
# - uses: actions/upload-artifact@v2
# with:
# name: fnm-macos
# path: target/release/fnm

build_static_linux_binary:
name: "Build static Linux binary"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build static binary
run: |
sudo chown -R 1000:1000 .
docker run --rm -v "$(pwd)":/home/rust/src ekidd/rust-musl-builder:stable \
cargo build --target x86_64-unknown-linux-gnu --release
sudo chown -R $(whoami):$(whoami) .
- uses: actions/upload-artifact@v2
with:
name: fnm-linux
path: target/x86_64-unknown-linux-gnu/release/fnm
# build_static_linux_binary:
# name: "Build static Linux binary"
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v2
# - name: Build static binary
# run: |
# sudo chown -R 1000:1000 .
# docker run --rm -v "$(pwd)":/home/rust/src ekidd/rust-musl-builder:stable \
# cargo build --target x86_64-unknown-linux-gnu --release
# sudo chown -R $(whoami):$(whoami) .
# - uses: actions/upload-artifact@v2
# with:
# name: fnm-linux
# path: target/x86_64-unknown-linux-gnu/release/fnm

build_static_arm_binary:
name: "Build ARM binary"
Expand Down

0 comments on commit 4aeaf58

Please sign in to comment.