]> Repositorios git - scryer-prolog.git/commitdiff
create swap file for wasm32 build
authorBennet Bleßmann <[email protected]>
Wed, 29 May 2024 17:50:27 +0000 (19:50 +0200)
committerBennet Bleßmann <[email protected]>
Wed, 29 May 2024 17:50:27 +0000 (19:50 +0200)
.github/workflows/ci.yml

index 9a9b092286868a4f37b8910f830e25970aa76f5f..0d0ce4ad7970e2f1df5151f2075247f8824528f0 100644 (file)
@@ -45,7 +45,7 @@ jobs:
           - { os: ubuntu-22.04,   rust-version: stable,  target: 'x86_64-unknown-linux-gnu', publish: true }
           - { os: ubuntu-22.04,   rust-version: stable,  target: 'i686-unknown-linux-gnu',   publish: true }
           # FIXME(issue #2138): run wasm tests, failing to run since https://github.com/mthom/scryer-prolog/pull/2137 removed wasm-pack
-          - { os: ubuntu-22.04,   rust-version: nightly, target: 'wasm32-unknown-unknown',   publish: true, args: '--no-default-features' , test-args: '--no-run --no-default-features' }
+          - { os: ubuntu-22.04,   rust-version: nightly, target: 'wasm32-unknown-unknown',   publish: true, args: '--no-default-features' , test-args: '--no-run --no-default-features', use_swap: true }
           # Cargo.toml rust-version
           - { os: ubuntu-22.04,   rust-version: "1.77",  target: 'x86_64-unknown-linux-gnu'}
           # rust versions
@@ -56,6 +56,10 @@ jobs:
         shell: bash
     steps:
       - uses: actions/checkout@v3
+      - uses: actionhippie/swap-space@v1
+        if: matrix.use_swap
+        with:
+          size: 10G
       - name: Setup Rust
         uses: ./.github/actions/setup-rust
         with: