Edit

kc3-lang/libressl/.github/workflows/emscripten.yml

Branch :

  • Browse

    Commit

  • Author : Mostafa Saad
    Date : 2024-06-16 11:08:38
    Hash : a949ecf4
    Message : Fix comment in emscripten.yml Co-authored-by: Joshua Sing <joshua@joshuasing.dev>

  • .github/workflows/emscripten.yml
  • # GitHub Actions workflow to run for Emscripten.
    name: "Emscripten"
    
    on:
      push: {}
      pull_request: {}
      schedule:
        - cron: "0 0 * * *" # At 00:00 daily.
    
    concurrency:
      group: "${{ github.workflow }}-${{ github.ref }}"
      cancel-in-progress: true
    
    jobs:
      test:
        name: "Emscripten"
        runs-on: "ubuntu-latest"
        if: ${{ github.repository_owner == 'libressl' || github.event_name != 'schedule' }}
        permissions:
          contents: read
        steps:
          - name: "Checkout repository"
            uses: actions/checkout@v4
    
          - name: "Setup emsdk"
            uses: mymindstorm/setup-emsdk@v14
            with:
              version: "3.1.60"
    
          - name: "Prepare repository"
            run: ./autogen.sh
    
          - name: "Configure CMake"
            run: emcmake cmake -Bbuild
    
          - name: "Build"
            run: cmake --build build --config Release
    
          - name: "Test"
            run: ctest --test-dir build -C Release --output-on-failure
    
      # Test ASAN with and without ASM enabled.
      test-asan:
        name: "ASAN (no-asm)"
        runs-on: "ubuntu-latest"
        if: ${{ github.repository_owner == 'libressl' || github.event_name != 'schedule' }}
        permissions:
          contents: read
        steps:
          - name: "Checkout repository"
            uses: actions/checkout@v4
    
          - name: "Setup emsdk"
            uses: mymindstorm/setup-emsdk@v14
            with:
              version: "3.1.60"
    
          - name: "Prepare repository"
            run: ./autogen.sh
    
          - name: "Configure CMake"
            run: emcmake cmake -Bbuild
            env:
              CFLAGS: "-gsource-map -fsanitize=address"
              LDFLAGS: "-fsanitize=address"
    
          - name: "Build"
            run: cmake --build build --config Release
    
          - name: "Test"
            run: ctest --test-dir build -C Release --output-on-failure