diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml new file mode 100644 index 0000000..7c53131 --- /dev/null +++ b/.github/workflows/push.yml @@ -0,0 +1,40 @@ +name: build-on-push +run-name: ${{ github.actor }} is running this workflow +on: [push] +jobs: + linux-x86_64-static: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: xmake-io/github-action-setup-xmake@v1 + with: + xmake-version: 2.8.6 + - run: xmake f -p linux -a x86_64 -m release --build_test=y + - run: xmake -wvD + linux-x86_64-static-profiling: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: xmake-io/github-action-setup-xmake@v1 + with: + xmake-version: 2.8.6 + - run: xmake f -p linux -a x86_64 -m release --build_test=y --profiling=y + - run: xmake -wvD + linux-x86_64-static-non-thread-safe: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: xmake-io/github-action-setup-xmake@v1 + with: + xmake-version: 2.8.6 + - run: xmake f -p linux -a x86_64 -m release --build_test=y --thread_safe=n + - run: xmake -wvD + linux-x86_64-static-profiling-non-thread-safe: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: xmake-io/github-action-setup-xmake@v1 + with: + xmake-version: 2.8.6 + - run: xmake f -p linux -a x86_64 -m release --build_test=y --profiling=y --thread_safe=n + - run: xmake -wvD diff --git a/.gitignore b/.gitignore index ec6f3d2..5dcdeac 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,7 @@ # Default .* !.gitignore +!.github/ # Xmake cache .xmake/