-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: version compatibility (#12) * fix: compilation issues includes: - bump to zig from 0.9 to 0.11 - `Jason` package dependency - better libcurl library linking * chore: bump to 0.3.0 * chore(ci): updated version matrix * fix(compatibility): set elixir 1.14 as minimum zigler depends on `Keyword.replace_lazy` which was introduced in Elixir 1.14. * chore(deps): bump zigler to 0.12.x dev branch * fix: working with zigler and zig 0.12 * fix(ci): install zig and update version matrix * chore(ci): update deprecated action steps * feat: add devenv * chore(deps): bump ex_doc to 0.34 * chore(deps): update zigler version * feat(ci): add macos-latest and use ubuntu-latest * fix(macos-ci): caching and rebar3 * fix(ci): macos installs zig * chore(deps): bump bypass deps * fix(ci): macos erlang 27.0 -> 27.0.1 * chore(macos-ci): specify elixir otp version * fix(macos-ci): use asdf to install zig instead of zig.get * fix(macos-ci): less specific latest elixir/otp versions * chore(deps): bump to stable zigler * chore(devenv): bump to zig 0.13 * chore(ci): use zig.get * chore(ci): add publish action * chore(ci): use separate action for zig * chore: use metrics struct instead of inline fields * chore(docs): minor docs corrections * chore(docs): updated repo urls * chore(lint): use Zig.Formatter
- Loading branch information
1 parent
5c35b5f
commit ff0841d
Showing
20 changed files
with
556 additions
and
359 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
# Used by "mix format" | ||
[ | ||
inputs: ["{mix,.formatter}.exs", "{config,lib,test}/**/*.{ex,exs}"] | ||
inputs: ["{mix,.formatter}.exs", "{config,lib,test}/**/*.{ex,exs}"], | ||
plugins: [Zig.Formatter] | ||
] |
This file contains 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 contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Publish | ||
|
||
on: | ||
push: | ||
branches: [master] | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
name: Publish | ||
env: | ||
HEX_API_KEY: ${{secrets.HEX_API_KEY}} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: erlef/setup-beam@v1 | ||
with: | ||
otp-version: "27.0" | ||
elixir-version: "1.17" | ||
- uses: goto-bus-stop/setup-zig@v2 | ||
with: | ||
version: 0.13.0 | ||
- run: mix deps.get | ||
- name: Publish Documentation | ||
run: mix hex.publish docs --yes | ||
if: github.event_name == 'push' && github.ref == 'refs/heads/master' | ||
- name: Publish Package | ||
run: mix hex.publish --yes | ||
if: github.event_name == 'release' && github.event.action == 'published' |
This file contains 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 contains 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 contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,139 @@ | ||
{ | ||
"nodes": { | ||
"devenv": { | ||
"locked": { | ||
"dir": "src/modules", | ||
"lastModified": 1722262342, | ||
"owner": "cachix", | ||
"repo": "devenv", | ||
"rev": "11a1ca0ad80bc172d2efda34ae542494442dcf48", | ||
"treeHash": "c1be883f8fad6adb0369cef0ac6e6c9bd7f3ec66", | ||
"type": "github" | ||
}, | ||
"original": { | ||
"dir": "src/modules", | ||
"owner": "cachix", | ||
"repo": "devenv", | ||
"type": "github" | ||
} | ||
}, | ||
"flake-compat": { | ||
"flake": false, | ||
"locked": { | ||
"lastModified": 1696426674, | ||
"owner": "edolstra", | ||
"repo": "flake-compat", | ||
"rev": "0f9255e01c2351cc7d116c072cb317785dd33b33", | ||
"treeHash": "2addb7b71a20a25ea74feeaf5c2f6a6b30898ecb", | ||
"type": "github" | ||
}, | ||
"original": { | ||
"owner": "edolstra", | ||
"repo": "flake-compat", | ||
"type": "github" | ||
} | ||
}, | ||
"gitignore": { | ||
"inputs": { | ||
"nixpkgs": [ | ||
"pre-commit-hooks", | ||
"nixpkgs" | ||
] | ||
}, | ||
"locked": { | ||
"lastModified": 1709087332, | ||
"owner": "hercules-ci", | ||
"repo": "gitignore.nix", | ||
"rev": "637db329424fd7e46cf4185293b9cc8c88c95394", | ||
"treeHash": "ca14199cabdfe1a06a7b1654c76ed49100a689f9", | ||
"type": "github" | ||
}, | ||
"original": { | ||
"owner": "hercules-ci", | ||
"repo": "gitignore.nix", | ||
"type": "github" | ||
} | ||
}, | ||
"nixpkgs": { | ||
"locked": { | ||
"lastModified": 1716977621, | ||
"owner": "cachix", | ||
"repo": "devenv-nixpkgs", | ||
"rev": "4267e705586473d3e5c8d50299e71503f16a6fb6", | ||
"treeHash": "6d9f1f7ca0faf1bc2eeb397c78a49623260d3412", | ||
"type": "github" | ||
}, | ||
"original": { | ||
"owner": "cachix", | ||
"ref": "rolling", | ||
"repo": "devenv-nixpkgs", | ||
"type": "github" | ||
} | ||
}, | ||
"nixpkgs-stable": { | ||
"locked": { | ||
"lastModified": 1722221733, | ||
"owner": "NixOS", | ||
"repo": "nixpkgs", | ||
"rev": "12bf09802d77264e441f48e25459c10c93eada2e", | ||
"treeHash": "e959ebf2e25b21ec31266bef769b447e4b907916", | ||
"type": "github" | ||
}, | ||
"original": { | ||
"owner": "NixOS", | ||
"ref": "nixos-24.05", | ||
"repo": "nixpkgs", | ||
"type": "github" | ||
} | ||
}, | ||
"nixpkgs-unstable": { | ||
"locked": { | ||
"lastModified": 1722185531, | ||
"owner": "NixOS", | ||
"repo": "nixpkgs", | ||
"rev": "52ec9ac3b12395ad677e8b62106f0b98c1f8569d", | ||
"treeHash": "561285c3e9ff92b7fff8f6111828711f012cb158", | ||
"type": "github" | ||
}, | ||
"original": { | ||
"owner": "NixOS", | ||
"ref": "nixos-unstable", | ||
"repo": "nixpkgs", | ||
"type": "github" | ||
} | ||
}, | ||
"pre-commit-hooks": { | ||
"inputs": { | ||
"flake-compat": "flake-compat", | ||
"gitignore": "gitignore", | ||
"nixpkgs": [ | ||
"nixpkgs" | ||
], | ||
"nixpkgs-stable": "nixpkgs-stable" | ||
}, | ||
"locked": { | ||
"lastModified": 1721042469, | ||
"owner": "cachix", | ||
"repo": "pre-commit-hooks.nix", | ||
"rev": "f451c19376071a90d8c58ab1a953c6e9840527fd", | ||
"treeHash": "91f40b7a3b9f6886bd77482cba5b5cd890415a2e", | ||
"type": "github" | ||
}, | ||
"original": { | ||
"owner": "cachix", | ||
"repo": "pre-commit-hooks.nix", | ||
"type": "github" | ||
} | ||
}, | ||
"root": { | ||
"inputs": { | ||
"devenv": "devenv", | ||
"nixpkgs": "nixpkgs", | ||
"nixpkgs-unstable": "nixpkgs-unstable", | ||
"pre-commit-hooks": "pre-commit-hooks" | ||
} | ||
} | ||
}, | ||
"root": "root", | ||
"version": 7 | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ pkgs, config, inputs, ... }: | ||
let unstable-pkgs = import inputs.nixpkgs-unstable { system = pkgs.stdenv.system; }; | ||
in { | ||
packages = [ | ||
unstable-pkgs.zig_0_13 | ||
unstable-pkgs.elixir_1_17 | ||
pkgs.curl | ||
]; | ||
|
||
enterTest = '' | ||
mix deps.get | ||
mix test | ||
''; | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# yaml-language-server: $schema=https://devenv.sh/devenv.schema.json | ||
inputs: | ||
nixpkgs: | ||
url: github:cachix/devenv-nixpkgs/rolling | ||
nixpkgs-unstable: | ||
url: github:NixOS/nixpkgs/nixos-unstable | ||
|
This file contains 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 contains 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
Oops, something went wrong.