forked from flame/blis
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
27 changed files
with
2,029 additions
and
1,670 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,115 @@ | ||
name: Automatic release | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'v*' | ||
- 'sv*' | ||
|
||
jobs: | ||
create-rel: | ||
name: BLIS release ${{ github.ref }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Create GH release | ||
id: create_release | ||
uses: actions/create-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tag_name: ${{ github.ref }} | ||
release_name: Automatic release. | ||
body: | | ||
Automatically generated by GitHub actions. | ||
draft: false | ||
prerelease: true | ||
outputs: | ||
upload-url: ${{ steps.create_release.outputs.upload_url }} | ||
|
||
build-test-upload: | ||
name: BLIS ${{ matrix.target.config }} - ${{ github.event_name }} | ||
needs: create-rel | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
target: | ||
- { | ||
config: 'intel64', | ||
cc: 'gcc', | ||
cflags: '', | ||
packages: 'gcc binutils' | ||
} | ||
- { | ||
config: 'amd64', | ||
cc: 'gcc', | ||
cflags: '', | ||
packages: 'gcc binutils' | ||
} | ||
# These Aarch64 configs would be merged after adding autodetection. | ||
- { | ||
config: 'cortexa57', | ||
cc: 'aarch64-linux-gnu-gcc', | ||
cflags: '-mno-outline-atomics', | ||
packages: 'gcc-aarch64-linux-gnu libc6-dev-arm64-cross' | ||
} | ||
- { | ||
config: 'armsve', | ||
cc: 'aarch64-linux-gnu-gcc-10', | ||
cflags: '-mno-outline-atomics', | ||
packages: 'gcc-10-aarch64-linux-gnu libc6-dev-arm64-cross' | ||
} | ||
- { | ||
config: 'a64fx', | ||
cc: 'aarch64-linux-gnu-gcc-10', | ||
cflags: '"-mno-outline-atomics -DCACHE_SECTOR_SIZE_READONLY"', | ||
packages: 'gcc-10-aarch64-linux-gnu libc6-dev-arm64-cross' | ||
} | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Install build dependencies | ||
run: | | ||
sudo apt update | ||
sudo apt install -y ${{ matrix.target.packages }} | ||
${{ matrix.target.cc }} --version | ||
- name: Configure project | ||
run: | | ||
mkdir dest | ||
./configure -t none -p ./dest \ | ||
CC=${{ matrix.target.cc }} \ | ||
CFLAGS=${{ matrix.target.cflags }} \ | ||
${{ matrix.target.config }} | ||
- name: Build | ||
run: | | ||
make -j | ||
- name: Quick check | ||
if: startsWith(matrix.target.config, 'x86') | ||
run: | | ||
make -j checkblis-fast | ||
- name: Install | ||
run: | | ||
make install | ||
- name: Packup | ||
run: | | ||
cd dest | ||
tar -zcvf ../libblis_${{ matrix.target.config }}_${{ matrix.target.cc }}.tar.gz \ | ||
include lib | ||
cd .. | ||
- name: Upload GH release asset | ||
id: upload-release-asset | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ needs.create-rel.outputs.upload-url }} | ||
asset_path: ./libblis_${{ matrix.target.config }}_${{ matrix.target.cc }}.tar.gz | ||
asset_name: libblis_${{ matrix.target.config }}_${{ matrix.target.cc }}.tar.gz | ||
asset_content_type: application/x-tar |
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
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
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
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
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
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.