Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Emacs respect string delimiter default #142

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
2 changes: 1 addition & 1 deletion .envrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
use nix
use flake .
26 changes: 14 additions & 12 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,22 @@ jobs:
matrix:
rust: [stable]
os: [ubuntu-latest, macOS-latest, windows-latest]
include:
- os: macOS-latest
target: aarch64-apple-darwin
- os: windows-latest
target: "x86_64-pc-windows-msvc"
- os: ubuntu-latest
target: "x86_64-unknown-linux-gnu"
steps:
- name: Setup Rust
uses: hecrj/setup-rust-action@master
- name: "Checkout Repo"
uses: actions/checkout@v4
- name: "Install Rust"
uses: dtolnay/rust-toolchain@stable
with:
rust-version: ${{ matrix.rust }}
components: rustfmt, clippy
- name: Installing LibClang on Windows
shell: pwsh
if: matrix.os == 'windows-latest'
run: choco install -y llvm
- name: Checkout
uses: actions/checkout@v1
- name: Build the crate
run: cargo build --release
target: ${{ matrix.target }}
- name: Build the crate for release
run: cargo build --release --features emacs
- name: Run tests
if: matrix.os != 'windows-latest'
run: cargo test --verbose
30 changes: 14 additions & 16 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,35 +17,33 @@ jobs:
rust: stable
artifact_name: libparinfer_rust.dylib
release_name: parinfer-rust-darwin.so
target: "aarch64-apple-darwin"
- os: windows-latest
rust: stable
artifact_name: parinfer_rust.dll
release_name: parinfer-rust-windows.dll
target: "x86_64-pc-windows-msvc"
- os: ubuntu-latest
rust: stable
artifact_name: libparinfer_rust.so
release_name: parinfer-rust-linux.so
target: "x86_64-unknown-linux-gnu"
steps:
- name: Setup Rust
uses: hecrj/setup-rust-action@master
- name: Checkout Repo
uses: actions/checkout@v4
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
rust-version: ${{ matrix.rust }}
- name: Checkout
uses: actions/checkout@v1
- name: Installing LibClang on Windows
shell: pwsh
if: matrix.os == 'windows-latest'
run: choco install -y llvm
target: ${{ matrix.target }}
- name: Build the crate for release
run: cargo build --release
run: cargo build --release --target ${{ matrix.target }} --features emacs
- name: Run tests
if: matrix.os != 'windows-latest'
run: cargo test --verbose
- name: Rename library
run: cp target/${{ matrix.target }}/release/${{ matrix.artifact_name }} ${{ matrix.release_name }}
- name: Upload libraries to GitHub release
uses: svenstaro/upload-release-action@v1-release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: target/release/${{ matrix.artifact_name }}
asset_name: ${{ matrix.release_name }}
tag: ${{ github.ref }}
overwrite: true
files: ${{ matrix.release_name }}
Loading