-
Notifications
You must be signed in to change notification settings - Fork 5
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
1 changed file
with
50 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,50 @@ | ||
name: Linux x86_64 | ||
|
||
on: | ||
push: | ||
paths-ignore: | ||
- '**.md' | ||
- 'LICENSE' | ||
- '.github/**' | ||
- '!.github/workflows/linux.yml' | ||
pull_request: | ||
paths-ignore: | ||
- '**.md' | ||
- 'LICENSE' | ||
- '.github/**' | ||
- '!.github/workflows/linux.yml' | ||
|
||
jobs: | ||
|
||
linux: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Clone. | ||
uses: actions/[email protected] | ||
with: | ||
submodules: recursive | ||
path: ${{ env.REPO_NAME }} | ||
|
||
- name: Build. | ||
run: | | ||
cd $REPO_NAME | ||
docker build --tag sunwalker_box . | ||
id="$(docker create sunwalker_box .)" | ||
docker cp sunwalker_box:/sunwalker_box sunwalker_box | ||
- name: Tests. | ||
run: | | ||
cd $REPO_NAME | ||
sudo apt install python3 python3-yaml musl-tools libc6-dev | ||
sudo make test | ||
- uses: actions/upload-artifact@master | ||
name: Upload artifact. | ||
with: | ||
name: ${{ env.ARTIFACT_NAME }} | ||
path: ${{ env.REPO_NAME }}/sunwalker_box |