test(defaults): fix keys_resolve_to_correct_defaults
#15
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "evil-helix - build pr" | |
on: | |
pull_request: | |
workflow_dispatch: | |
permissions: write-all | |
env: | |
RUST_BACKTRACE: 1 | |
HELIX_LOG_LEVEL: info | |
HELIX_DEFAULT_RUNTIME: /opt/helix/runtime | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
strategy: | |
fail-fast: false | |
matrix: | |
target: | |
- id: x86_64-unknown-linux-gnu | |
name: amd64-linux | |
native: true | |
os: ubuntu-latest | |
runs-on: ${{ matrix.target.os }} | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v4 | |
- name: Install stable toolchain | |
uses: dtolnay/rust-toolchain@1.74 | |
with: | |
targets: ${{ matrix.target.id }} | |
- uses: Swatinem/rust-cache@v2 | |
with: | |
shared-key: "build" | |
- name: Build | |
run: cargo build --target ${{ matrix.target.id }} --release | |
- name: "Prepare dist" | |
run: | | |
mkdir -pv dist/helix | |
mv -v target/${{ matrix.target.id }}/release/hx dist/helix/ | |
rm -rf runtime/grammars/sources | |
mv -v runtime dist/helix/ | |
cd dist && tar -cvzf helix-${{ matrix.target.name }}.tar.gz helix | |
- name: "Upload artifacts" | |
uses: actions/upload-artifact@v4 | |
with: | |
name: helix-${{ matrix.target.name }} | |
path: dist/helix-${{ matrix.target.name }}.tar.gz |