This is ridiculous #3
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
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 | |
env: | |
REPO_NAME: sunwalker_box | |
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 $id:/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 |