Update ci.yml
parent
6c61bc06f5
commit
827ca4f617
|
|
@ -68,15 +68,18 @@ jobs:
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
target: [aarch64-apple-darwin, x86_64-unknown-linux-gnu, x86_64-unknown-linux-gnu-cuda-11.7]
|
bin: [aarch64-apple-darwin, x86_64-unknown-linux-gnu, x86_64-unknown-linux-gnu-cuda-11.7]
|
||||||
include:
|
include:
|
||||||
- os: macos-latest
|
- os: macos-latest
|
||||||
|
bin: aarch64-apple-darwin
|
||||||
target: aarch64-apple-darwin
|
target: aarch64-apple-darwin
|
||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
|
bin: x86_64-unknown-linux-gnu
|
||||||
target: x86_64-unknown-linux-gnu
|
target: x86_64-unknown-linux-gnu
|
||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
target: x86_64-unknown-linux-gnu-cuda-11.7
|
bin: x86_64-unknown-linux-gnu-cuda-11-7
|
||||||
cuda_version: '11.7.1'
|
cuda_version: '11.7.1'
|
||||||
|
target: x86_64-unknown-linux-gnu
|
||||||
|
|
||||||
env:
|
env:
|
||||||
SCCACHE_GHA_ENABLED: true
|
SCCACHE_GHA_ENABLED: true
|
||||||
|
|
@ -131,14 +134,14 @@ jobs:
|
||||||
run: cargo build --features cuda --release --target ${{ matrix.target }} --package tabby
|
run: cargo build --features cuda --release --target ${{ matrix.target }} --package tabby
|
||||||
|
|
||||||
- name: Rename release binary
|
- name: Rename release binary
|
||||||
run: mv target/${{ matrix.target }}/release/tabby tabby_${{ matrix.target }}
|
run: mv target/${{ matrix.target }}/release/tabby tabby_${{ matrix.bin }}
|
||||||
|
|
||||||
- name: Upload artifacts
|
- name: Upload artifacts
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
retention-days: 3
|
retention-days: 3
|
||||||
name: tabby_${{ matrix.target }}
|
name: tabby_${{ matrix.bin }}
|
||||||
path: tabby_${{ matrix.target }}
|
path: tabby_${{ matrix.bin }}
|
||||||
|
|
||||||
pre-release:
|
pre-release:
|
||||||
if: github.event_name == 'push'
|
if: github.event_name == 'push'
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue