base: redefine reverse abstract_array #6993
Workflow file for this run
This file contains hidden or 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
| # This file is part of the Fuzion language implementation. | |
| # | |
| # The Fuzion language implementation is free software: you can redistribute it | |
| # and/or modify it under the terms of the GNU General Public License as published | |
| # by the Free Software Foundation, version 3 of the License. | |
| # | |
| # The Fuzion language implementation is distributed in the hope that it will be | |
| # useful, but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public | |
| # License for more details. | |
| # | |
| # You should have received a copy of the GNU General Public License along with The | |
| # Fuzion language implementation. If not, see <https://www.gnu.org/licenses/>. | |
| # ----------------------------------------------------------------------- | |
| # | |
| # Tokiwa Software GmbH, Germany | |
| # | |
| # GitHub Actions workflow to build and test Fuzion on Ubuntu. | |
| # | |
| # ----------------------------------------------------------------------- | |
| name: run tests on linux | |
| # https://lobste.rs/s/ppjtie/simple_trick_save_environment_money_when | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} | |
| permissions: | |
| contents: read | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - 'main' | |
| pull_request: {} | |
| env: | |
| PRECONDITIONS: true | |
| POSTCONDITIONS: true | |
| FUZION_REPRODUCIBLE_BUILD: true | |
| dev_flang_tools_serializeFUIR: true | |
| dev_flang_fuir_analysis_dfa_DFA_MAX_ITERATIONS: 50 | |
| INFLUXDB_TOKEN: ${{ secrets.INFLUXDB_TOKEN }} | |
| jobs: | |
| run_tests: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: install dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install openjdk-25-jdk-headless sqlite3 libgc1 libgc-dev libclang1 libclang-dev libwolfssl-dev libsodium23 libsodium-dev | |
| echo "JAVA_HOME=/usr/lib/jvm/java-25-openjdk-amd64" >> $GITHUB_ENV | |
| echo "/usr/lib/jvm/java-25-openjdk-amd64/bin" >> $GITHUB_PATH | |
| - name: link libclang | |
| run: | | |
| export CLANG_MAJOR_VERSION=$(clang --version | head -n 1 | awk '{print $4}' | cut -d. -f1) | |
| test -f /usr/lib/llvm-$CLANG_MAJOR_VERSION/lib/libclang.so && sudo ln -s /usr/lib/llvm-$CLANG_MAJOR_VERSION/lib/libclang.so /usr/lib/ | |
| - name: build java code | |
| run: make -j$(nproc) javac | |
| - name: build (no java modules) | |
| run: make -j$(nproc) no-java | |
| - name: build fz_cmd and dependencies | |
| run: make build/modules/fz_cmd.fum | |
| - name: build fuzion.jar | |
| run: make build/fuzion.jar | |
| - name: run tests | |
| run: make run_tests | |
| - name: check that interpreter works in general | |
| run: make int -C build/tests/hello |