Skip to content
Myr

ci: add aarch64 Windows

Before adoption: this commit came in with the history the project adopted, so no landing records it.

This also adds a new release artifact for aarch64 Windows. Closes #2943, Closes #3038

authored by Josh Cotton · committed by Andrew Gallant · parent 8fca3cd · Browse files · 3 files+15 added−6 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

3 files+15 added−6 removed

  • other:+15 added−6 removed

3 files+15 added−6 removed

modified:.github/workflows/ci.yml+6 added-3 removed
97 unmodified lines
98 - build: macos99 os: macos-latest100 rust: nightly101 - build: win-msvc102 os: windows-2022102 os: windows-latest103 rust: nightly104 - build: win-gnu105 os: windows-2022105 os: windows-latest106 rust: nightly-x86_64-gnu107 - build: winaarch64-msvc108 os: windows-11-arm109 rust: nightly110 steps:111 - name: Checkout repository112 uses: actions/checkout@v4113
65 unmodified lines
179 # We could test this when using Cross, but we'd have to execute the180 # 'rg' binary (done in test-complete) with qemu, which is a pain and181 # doesn't really gain us much. If shell completion works in one place,182 # it probably works everywhere.180 if: matrix.target == '' && matrix.os != 'windows-2022'183 if: matrix.target == '' && !startsWith(matrix.os, 'windows')184 shell: bash185 run: ci/test-complete186187 - name: Print hostname detected by grep-cli crate
73 unmodified lines
modified:.github/workflows/release.yml+7 added-3 removed
120 unmodified lines
121 - build: win-gnu122 os: windows-latest123 rust: nightly-x86_64-gnu124 target: x86_64-pc-windows-gnu125 - build: winaarch64-msvc126 os: windows-11-arm127 rust: nightly128 target: aarch64-pc-windows-msvc129 - build: win32-msvc130 os: windows-latest131 rust: nightly132 target: i686-pc-windows-msvc
45 unmodified lines
178 - name: Build release binary179 shell: bash180 run: |181 ${{ env.CARGO }} build --verbose --release --features pcre2 ${{ env.TARGET_FLAGS }}178 if [ "${{ matrix.os }}" = "windows-latest" ]; then182 if [[ "${{ matrix.os }}" == windows-* ]]; then183 bin="target/${{ matrix.target }}/release/rg.exe"184 else185 bin="target/${{ matrix.target }}/release/rg"186 fi
74 unmodified lines
261 --generate man > "$ARCHIVE/doc/rg.1"262263 - name: Build archive (Windows)264 shell: bash261 if: matrix.os == 'windows-latest'265 if: startsWith(matrix.os, 'windows')266 run: |267 7z a "$ARCHIVE.zip" "$ARCHIVE"268 certutil -hashfile "$ARCHIVE.zip" SHA256 > "$ARCHIVE.zip.sha256"269 echo "ASSET=$ARCHIVE.zip" >> $GITHUB_ENV270 echo "ASSET_SUM=$ARCHIVE.zip.sha256" >> $GITHUB_ENV271272 - name: Build archive (Unix)273 shell: bash270 if: matrix.os != 'windows-latest'274 if: ${{ !startsWith(matrix.os, 'windows') }}275 run: |276 tar czf "$ARCHIVE.tar.gz" "$ARCHIVE"277 shasum -a 256 "$ARCHIVE.tar.gz" > "$ARCHIVE.tar.gz.sha256"278 echo "ASSET=$ARCHIVE.tar.gz" >> $GITHUB_ENV
97 unmodified lines
modified:CHANGELOG.md+2 added
30 unmodified lines
31* [FEATURE #2842](https://github.com/BurntSushi/ripgrep/pull/2842):32 Directories containing `.jj` are now treated as git repositories.33* [FEATURE #2849](https://github.com/BurntSushi/ripgrep/pull/2849):34 When using multithreading, schedule files to search in order given on CLI.35* [FEATURE #2943](https://github.com/BurntSushi/ripgrep/issues/2943):36 Add `aarch64` release artifacts for Windows.37383914.1.1 (2024-09-08)40===================
1709 unmodified lines