-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
workflow for dist + clang/gcc (x86_64)
- Loading branch information
1 parent
fb8a7f8
commit 29f35fb
Showing
1 changed file
with
44 additions
and
0 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,44 @@ | ||
name: Build | ||
|
||
on: [ push, pull_request ] | ||
|
||
jobs: | ||
dist: | ||
name: Package | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Configure | ||
run: | | ||
./bootstrap.sh | ||
./configure | ||
- name: Make source package | ||
run: make VERSION=${{ github.sha }} dist | ||
- name: Upload source package artifact | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: xpar-${{ github.sha }} | ||
path: xpar-${{ github.sha }}.tar.gz | ||
- name: Run distcheck | ||
run: make distcheck | ||
|
||
build: | ||
name: Compile (clang/gcc, x86_64) | ||
needs: [ dist ] | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
compiler: [ clang, gcc ] | ||
feature: [ enable-x86_64, disable-x86_64 ] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Download source package artifact | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: xpar-${{ github.sha }} | ||
- name: Extract source package | ||
run: tar --strip-components=1 -xf xpar-${{ github.sha}}.tar.gz | ||
- name: Configure | ||
run: ./configure CC=${{ matrix.compiler }} --${{ matrix.feature }} | ||
- name: Make | ||
run: make |