diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..9435d84 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,26 @@ +on: push + +name: build and upload artifacts + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - uses: cachix/install-nix-action@v26 + - uses: cachix/cachix-action@v14 + with: + name: devenv + - name: Install devenv.sh + run: nix profile install nixpkgs#devenv + - name: Build + shell: devenv shell bash -- -e {0} + run: | + cargo build --release + mkdir dist + cp ./target/release/libvenkeybind.so ./dist/venkeybind-linux-x64.node + - name: upload + uses: actions/upload-artifact@v4 + with: + path: ./dist/venkeybind-linux-x64.node diff --git a/Cargo.toml b/Cargo.toml index 5464b77..84d2124 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -21,9 +21,9 @@ default = ["node"] node = ["dep:node-bindgen"] [workspace] -members = [ - "./uiohook-sys" -] +members = ["./uiohook-sys"] [build-dependencies] -node-bindgen = { version = "6.0", default-features = false, features = ["build"], optional = true } +node-bindgen = { version = "6.0", default-features = false, features = [ + "build", +], optional = true }