mirror of
https://github.com/TransparentLC/opencl_vanity_gpg.git
synced 2025-10-20 23:34:08 +00:00
wip: record build arch in output
This commit is contained in:
parent
5f40ce4e74
commit
8d202f9b24
1 changed files with 9 additions and 2 deletions
11
.github/workflows/build.yml
vendored
11
.github/workflows/build.yml
vendored
|
@ -9,21 +9,25 @@ on:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ${{ matrix.os }}
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os:
|
os:
|
||||||
- windows-latest
|
- windows-latest
|
||||||
- ubuntu-latest
|
- ubuntu-latest
|
||||||
- macos-latest
|
- macos-latest
|
||||||
|
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: dtolnay/rust-toolchain@stable
|
- uses: dtolnay/rust-toolchain@stable
|
||||||
with:
|
with:
|
||||||
toolchain: stable
|
toolchain: stable
|
||||||
|
|
||||||
- uses: Swatinem/rust-cache@v2
|
- uses: Swatinem/rust-cache@v2
|
||||||
- name: Prepare OpenCL SDK
|
- name: Prepare OpenCL SDK
|
||||||
shell: bash
|
shell: bash
|
||||||
|
id: prepare
|
||||||
env:
|
env:
|
||||||
GH_TOKEN: ${{ github.token }}
|
GH_TOKEN: ${{ github.token }}
|
||||||
run: |
|
run: |
|
||||||
|
@ -36,6 +40,8 @@ jobs:
|
||||||
if [[ "$RUNNER_OS" == "Linux" ]]; then
|
if [[ "$RUNNER_OS" == "Linux" ]]; then
|
||||||
sudo apt install opencl-headers ocl-icd-opencl-dev
|
sudo apt install opencl-headers ocl-icd-opencl-dev
|
||||||
fi
|
fi
|
||||||
|
echo "rust_arch=$(rustc -vV | grep 'host: ' | cut -d ' ' -f 2)" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
id: build
|
id: build
|
||||||
shell: bash
|
shell: bash
|
||||||
|
@ -51,8 +57,9 @@ jobs:
|
||||||
else
|
else
|
||||||
echo "executable=target/release/opencl_vanity_gpg" >> $GITHUB_OUTPUT
|
echo "executable=target/release/opencl_vanity_gpg" >> $GITHUB_OUTPUT
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Upload result
|
- name: Upload result
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: opencl_vanity_gpg-${{ runner.os }}
|
name: opencl_vanity_gpg-${{ steps.prepare.outputs.rust_arch }}
|
||||||
path: ${{ steps.build.outputs.executable }}
|
path: ${{ steps.build.outputs.executable }}
|
||||||
|
|
Loading…
Add table
Reference in a new issue