diff --git a/.github/workflows/crystal.yml b/.github/workflows/crystal.yml index 43fee48..bf75807 100644 --- a/.github/workflows/crystal.yml +++ b/.github/workflows/crystal.yml @@ -9,9 +9,23 @@ on: jobs: build: runs-on: ubuntu-latest + name: "crystal: ${{ matrix.crystal }}, stable: ${{ matrix.stable }}" + continue-on-error: ${{ !matrix.stable }} + strategy: + fail-fast: false + matrix: + stable: [true] + crystal: + - 1.0.0 + - 1.1.0 + - 1.1.1 + - 1.2.0 + include: + - crystal: nightly + stable: false container: - image: crystallang/crystal + image: crystallang/crystal:${{ matrix.crystal }} steps: - uses: actions/checkout@v2 @@ -31,8 +45,7 @@ jobs: - name: Install dependencies run: shards install - name: Run tests - run: crystal spec -Dpreview_mt --order random -# run: crystal spec -Dpreview_mt --order random --error-on-warnings + run: crystal spec -Dpreview_mt --order random - name: Run bulid run: shards build -Dpreview_mt - name: Run format @@ -40,4 +53,3 @@ jobs: - name: Failed if: ${{ failure() }} run: "[ -f libsodium_install.out ] && cat libsodium_install.out" - diff --git a/shard.yml b/shard.yml index a77c077..4e17b80 100644 --- a/shard.yml +++ b/shard.yml @@ -4,7 +4,7 @@ version: 1.2.3 authors: - Andrew Hamon - Didactic Drunk <1479616+didactic-drunk@users.noreply.github.com> -crystal: ">= 0.36.0" +crystal: ">= 1.0.0" targets: blake2b_hash: main: examples/blake2b_hash.cr diff --git a/src/sodium/cipher/aead/chalsa.cr b/src/sodium/cipher/aead/chalsa.cr index f9d20ff..57b7208 100644 --- a/src/sodium/cipher/aead/chalsa.cr +++ b/src/sodium/cipher/aead/chalsa.cr @@ -103,7 +103,7 @@ module Sodium::Cipher::Aead # `src` and `dst` may be the same object but should not overlap. # May supply `mac`, otherwise a new one is returned. # May supply `additional` - def encrypt_detached(src : Bytes, dst : Bytes? = nil, nonce : Sodium::Nonce? = nil, *, mac : Bytes? = nil, additional : String | Bytes | Nil = nil) : {Bytes, Bytes, Sodium::Nonce} + def encrypt_detached(src : Bytes, dst : Bytes? = nil, *, nonce : Sodium::Nonce? = nil, mac : Bytes? = nil, additional : String | Bytes | Nil = nil) : {Bytes, Bytes, Sodium::Nonce} dst ||= Bytes.new src.bytesize nonce ||= Sodium::Nonce.random mac ||= Bytes.new MAC_SIZE