introduce a new method (set_host_to_base_host) to replace set_host when set_host is unnecessary #1583
Workflow file for this run
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: Alpine Linux | |
on: | |
pull_request: | |
types: [opened, synchronize, reopened, ready_for_review] | |
paths-ignore: | |
- '**.md' | |
- 'docs/**' | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- '**.md' | |
- 'docs/**' | |
permissions: | |
contents: read | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
ubuntu-build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 | |
- name: start docker | |
run: | | |
docker run -w /src -dit --name alpine -v $PWD:/src alpine:latest | |
echo 'docker exec alpine "$@";' > ./alpine.sh | |
chmod +x ./alpine.sh | |
- name: install packages | |
run: | | |
./alpine.sh apk update | |
./alpine.sh apk add build-base cmake g++ linux-headers git bash icu-dev | |
- name: cmake | |
run: | | |
./alpine.sh cmake -DADA_BENCHMARKS=ON -B build_for_alpine | |
- name: build | |
run: | | |
./alpine.sh cmake --build build_for_alpine | |
- name: test | |
run: | | |
./alpine.sh bash -c "cd build_for_alpine && ctest ." |