Skip to content

Commit

Permalink
fix: fix unit tests
Browse files Browse the repository at this point in the history
tome unit tests is not working for aarch64.
  • Loading branch information
toumorokoshi committed Apr 1, 2024
1 parent f8233b8 commit 3418393
Show file tree
Hide file tree
Showing 4 changed files with 66 additions and 84 deletions.
45 changes: 0 additions & 45 deletions .github/workflows/linux-build.yml

This file was deleted.

65 changes: 65 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
name: Build and Release
on:
# # Indicates I want to run this workflow on all branches, PR, and tags
push:
branches: ["*"]
tags: ["*"]
pull_request:
branches: ["master"]

env:
BIN_NAME: "tome"
CRATE_NAME: tome

jobs:
build:
name: ${{ matrix.platform.os_name }} with rust ${{ matrix.toolchain }}
runs-on: ${{ matrix.platform.os }}
strategy:
fail-fast: false
matrix:
platform:
- os_name: Linux-x86_64
os: ubuntu-20.04
target: x86_64-unknown-linux-musl
bin: tome
name: tome-linux-x86_64
- os_name: Linux-aarch64
os: ubuntu-20.04
target: aarch64-unknown-linux-musl
bin: tome
name: tome-linux-aarch64
- os_name: macOS-x86_64
os: macOS-latest
target: x86_64-apple-darwin
bin: tome
name: tome-darwin-x86_64
- os_name: macOS-aarch64
os: macOS-latest
target: aarch64-apple-darwin
bin: tome
name: tome-darwin-aarch64
toolchain:
- stable
- beta
steps:
- uses: actions/checkout@v3
- name: Install musl-tools on Linux
run: sudo apt-get update --yes && sudo apt-get install --yes musl-tools
if: contains(matrix.platform.name, 'musl')
- name: Build binary
uses: houseabsolute/[email protected]
with:
command: "build"
target: ${{ matrix.platform.target }}
toolchain: ${{ matrix.toolchain }}
args: "--locked --release"
strip: true
- name: Run tests
uses: houseabsolute/actions-rust-cross@v0
with:
command: "test"
target: ${{ matrix.platform.target }}
toolchain: ${{ matrix.toolchain }}
args: "--locked --release"
if: ${{ !matrix.platform.skip_tests }}
38 changes: 0 additions & 38 deletions .github/workflows/osx-build.yml

This file was deleted.

2 changes: 1 addition & 1 deletion src/lib_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ fn test_simple_script_completion() {
}

/// Unless the file has the completion annotation
/// do not invoked completion on it and return nothing
/// do not invoke completion on it and return nothing
/// instead.
#[test]
fn test_simple_script_no_completion() {
Expand Down

0 comments on commit 3418393

Please sign in to comment.