Skip to content

Commit

Permalink
Merge pull request #16 from mcpt/blacksmith-migration-c2fbc25
Browse files Browse the repository at this point in the history
blacksmith.sh: Migrate workflows to Blacksmith
  • Loading branch information
JasonLovesDoggo authored Oct 15, 2024
2 parents c2fbc25 + b0698e4 commit c0bb093
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ on: [ push ]

jobs:
lint:
runs-on: ubuntu-latest
runs-on: blacksmith-2vcpu-ubuntu-2204
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v4
uses: useblacksmith/setup-python@v6
with:
python-version: '3.10'
- name: Install Black and Flake8
Expand All @@ -25,11 +25,11 @@ jobs:
- name: Run clang-format
run: find dmoj/ \( -name '*.h' -or -name '*.cpp' -or -name '*.c' \) -not -name _cptbox.cpp -print0 | xargs -0 ./clang-format --dry-run -Werror --color
mypy:
runs-on: ubuntu-latest
runs-on: blacksmith-4vcpu-ubuntu-2204
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v4
uses: useblacksmith/setup-python@v6
with:
python-version: '3.10'
- name: Install dependencies and mypy
Expand All @@ -41,11 +41,11 @@ jobs:
mypy --version
mypy dmoj
test-sdist:
runs-on: ubuntu-latest
runs-on: blacksmith-4vcpu-ubuntu-2204
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v4
uses: useblacksmith/setup-python@v6
with:
python-version: '3.10'
- name: Install build dependencies
Expand All @@ -59,7 +59,7 @@ jobs:
pip install dist/*.tar.gz
dmoj-autoconf
amd64:
runs-on: ubuntu-latest
runs-on: blacksmith-4vcpu-ubuntu-2204
strategy:
matrix:
python-version: [ '3.7', '3.8', '3.9', '3.10', '3.11' ]
Expand Down Expand Up @@ -98,7 +98,7 @@ jobs:
EOF
chmod a+x run run-su
- uses: actions/cache@v2
- uses: useblacksmith/cache@v5
with:
path: ~/docker-cache
key: ${{ runner.os }}-python-${{ matrix.python-version }}-pip-${{ hashFiles('**/requirements.txt') }}
Expand All @@ -121,7 +121,7 @@ jobs:
packages: write
# needs: [ lint, mypy, test-sdist, amd64, arm64 ]
needs: [ amd64 ]
runs-on: ubuntu-latest
runs-on: blacksmith-4vcpu-ubuntu-2204
steps:
- uses: actions/checkout@v4

Expand Down

0 comments on commit c0bb093

Please sign in to comment.