From a7aeeb171183a33fb3c880de501bfdc9f2829916 Mon Sep 17 00:00:00 2001 From: Yegor Bugayenko Date: Wed, 25 Sep 2024 10:46:49 +0300 Subject: [PATCH] sa --- .github/workflows/quick.yml | 2 +- .github/workflows/sa.yml | 35 +++++++++++++++++++++++++++++++++++ Makefile | 4 ++-- 3 files changed, 38 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/sa.yml diff --git a/.github/workflows/quick.yml b/.github/workflows/quick.yml index 62d734c..d798648 100644 --- a/.github/workflows/quick.yml +++ b/.github/workflows/quick.yml @@ -62,7 +62,7 @@ jobs: java-version: '21' github-token: ${{ secrets.GH_PAT }} - run: make env sa - - run: make -e env sa + - run: make -e env - run: make -e FAST=1 INPUT=7 terminate-instance: needs: diff --git a/.github/workflows/sa.yml b/.github/workflows/sa.yml new file mode 100644 index 0000000..4adc2a0 --- /dev/null +++ b/.github/workflows/sa.yml @@ -0,0 +1,35 @@ +# Copyright (c) 2022-2024 Yegor Bugayenko +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included +# in all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. +--- +name: sa +'on': + push: + branches: + - master + pull_request: + branches: + - master +jobs: + sa: + runs-on: ubuntu-24.04 + steps: + - uses: actions/checkout@v4 + - run: sudo make install + - run: make sa diff --git a/Makefile b/Makefile index c7d3c39..7928405 100644 --- a/Makefile +++ b/Makefile @@ -244,9 +244,9 @@ bin/csharp-%.bin: csharp/%/Program.cs | bin exit 1 fi cd "$$(dirname "$<")" - $(DOTNET) publish -c Release -r "$${arch}" --self-contained + $(DOTNET) publish -c Release -r "$${arch}" --self-contained --output bins --nologo bin=$$(basename "$$(dirname "$<")") - mv bin/Release/*/*/native/"$${bin}" "../../$@" + mv "bins/$${bin}" "../../$@" bin/pascal-%.bin: pascal/%.pp | bin fpc "$<" "-FEbin" "-o$@"