ci/release: use latest OS versions
Before adoption: this commit came in with the history the project adopted, so no landing records it.
authored by Andrew Gallant · committed by Andrew Gallant · parent 8d464e5 · Browse files · 1 file·+12 added−12 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
1 file+12 added−12 removed
- other:+12 added−12 removed
Provenance
- Commit
efb2e8c- Tree
0bff3a5- Author
Andrew Gallant <jamslam@gmail.com>- Committer
Andrew Gallant <jamslam@gmail.com>- Parent
8d464e5
1 file changed+12 added−12 removed
modified:.github/workflows/release.yml+12 added-12 removed
22 unmodified lines2324252627272829303131 unmodified lines636465666767686970717172737475757677787979808182838384858687878889909192939495969697989910010110110210310410518 unmodified lines12412512612712812912812913013113213315 unmodified lines14915015115215315315415515615715 unmodified lines22 unmodified lines - "[0-9]+.[0-9]+.[0-9]+"jobs: create-release: name: create-release runs-on: ubuntu-22.04 runs-on: ubuntu-latest # env: # Set to force version number, e.g., when no tag exists. # RG_VERSION: TEST-0.0.0 outputs:31 unmodified lines matrix: build: [linux, linux-arm, macos, win-msvc, win-gnu, win32-msvc] include: - build: linux os: ubuntu-22.04 os: ubuntu-latest rust: nightly target: x86_64-unknown-linux-musl - build: linux-arm os: ubuntu-22.04 os: ubuntu-latest rust: nightly target: arm-unknown-linux-gnueabihf - build: macos os: macos-12 os: macos-latest rust: nightly target: x86_64-apple-darwin - build: win-msvc os: windows-2022 os: windows-latest rust: nightly target: x86_64-pc-windows-msvc - build: win-gnu os: windows-2022 os: windows-latest rust: nightly-x86_64-gnu target: x86_64-pc-windows-gnu - build: win32-msvc os: windows-2022 os: windows-latest rust: nightly target: i686-pc-windows-msvc
steps: - name: Checkout repository uses: actions/checkout@v3
- name: Install packages (Ubuntu) if: matrix.os == 'ubuntu-22.04' if: matrix.os == 'ubuntu-latest' run: | ci/ubuntu-install-packages
- name: Install packages (macOS) if: matrix.os == 'macos-12' if: matrix.os == 'macos-latest' run: | ci/macos-install-packages
- name: Install Rust18 unmodified lines
- name: Build release binary run: ${{ env.CARGO }} build --verbose --release --features pcre2 ${{ env.TARGET_FLAGS }}
- name: Strip release binary (linux and macos) if: matrix.build == 'linux' || matrix.build == 'macos' - name: Strip release binary (linux, macos and macos-arm) if: matrix.build == 'linux' || matrix.os == 'macos' run: strip "target/${{ matrix.target }}/release/rg"
- name: Strip release binary (arm) if: matrix.build == 'linux-arm'15 unmodified lines cp {CHANGELOG.md,FAQ.md,GUIDE.md} "$staging/doc/" cp "$outdir"/{rg.bash,rg.fish,_rg.ps1} "$staging/complete/" cp complete/_rg "$staging/complete/"
if [ "${{ matrix.os }}" = "windows-2022" ]; then if [ "${{ matrix.os }}" = "windows-latest" ]; then cp "target/${{ matrix.target }}/release/rg.exe" "$staging/" 7z a "$staging.zip" "$staging" certutil -hashfile "$staging.zip" SHA256 > "$staging.zip.sha256" echo "ASSET=$staging.zip" >> $GITHUB_ENV15 unmodified lines