Skip to content

Commit

Permalink
Merge pull request #3 from rainlanguage/2024-05-21-cargo-and-erc165
Browse files Browse the repository at this point in the history
cargo setup and functionalities for erc165
  • Loading branch information
thedavidmeister authored Jun 12, 2024
2 parents 3292a5c + a72dc94 commit 6855a2d
Show file tree
Hide file tree
Showing 8 changed files with 5,548 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/manual-rs-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Manual rs release
on: [workflow_dispatch]

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: recursive

- uses: DeterminateSystems/nix-installer-action@v4
- uses: DeterminateSystems/magic-nix-cache-action@v2

- run: |
git config --global user.email "${{ secrets.CI_GIT_EMAIL }}"
git config --global user.name "${{ secrets.CI_GIT_USER }}"
- run: nix develop -c rainix-rs-prelude

- run: nix develop -c cargo release --no-confirm --execute alpha
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
28 changes: 28 additions & 0 deletions .github/workflows/rainix.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Rainix CI
on: [push]

jobs:
standard-tests:
runs-on: ubuntu-latest
strategy:
matrix:
task: [rainix-rs-test, rainix-rs-artifacts, rainix-rs-static]
fail-fast: false

steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: recursive

- name: Install Nix 1/2
uses: DeterminateSystems/nix-installer-action@v4
- name: Install Nix 2/2
uses: DeterminateSystems/magic-nix-cache-action@v2

- name: Rainix Rust Prelude
run: nix develop -c rainix-rs-prelude

- name: Run Command ${{ matrix.task }}
run: nix develop -c ${{ matrix.task }}
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.DS_Store

# Generated by Cargo
# will have compiled files and executables
debug
Expand All @@ -8,3 +10,7 @@ target

# MSVC Windows builds of rustc generate these, which store debugging information
*.pdb

# foundry
cache
out
3 changes: 3 additions & 0 deletions .rustfmt.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
edition = "2018"
reorder_imports = false
reorder_modules = false
Loading

0 comments on commit 6855a2d

Please sign in to comment.