-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: Update CI workflows and add Dependabot config
- Loading branch information
Showing
2 changed files
with
28 additions
and
27 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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# To get started with Dependabot version updates, you'll need to specify which | ||
# package ecosystems to update and where the package manifests are located. | ||
# Please see the documentation for all configuration options: | ||
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file | ||
|
||
version: 2 | ||
updates: | ||
- package-ecosystem: "github-actions" # See documentation for possible values | ||
directory: "/" # Location of package manifests | ||
schedule: | ||
interval: "weekly" |
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 |
---|---|---|
|
@@ -26,55 +26,37 @@ jobs: | |
os: macos-latest | ||
name: macos | ||
suffix: '' | ||
# - target: x86_64-pc-windows-msvc | ||
# os: windows-latest | ||
# name: windows | ||
# suffix: .exe | ||
|
||
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
- uses: actions/checkout@v3.5.3 | ||
- uses: actions/checkout@v4.1.3 | ||
|
||
- uses: Vampire/[email protected] | ||
with: | ||
additional-packages: | ||
git | ||
clang | ||
curl | ||
libssl-dev | ||
llvm | ||
libudev-dev | ||
make | ||
protobuf-compile | ||
if: matrix.os == 'windows-latest' | ||
|
||
- uses: actions-rs/[email protected] | ||
- uses: actions-rs/[email protected] | ||
with: | ||
profile: minimal | ||
toolchain: nightly-2023-05-20 | ||
override: true | ||
|
||
- name: Add WASM target | ||
run: | | ||
rustup target add wasm32-unknown-unknown | ||
run: rustup target add wasm32-unknown-unknown | ||
|
||
- uses: actions/cache@v3.3.1 | ||
- uses: actions/cache@v4.0.2 | ||
with: | ||
path: ~/.cargo/registry | ||
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }} | ||
|
||
- uses: actions/cache@v3.3.1 | ||
- uses: actions/cache@v4.0.2 | ||
with: | ||
path: ~/.cargo/git | ||
key: ${{ runner.os }}-cargo-git-${{ hashFiles('**/Cargo.lock') }} | ||
|
||
- uses: actions/cache@v3.3.1 | ||
- uses: actions/cache@v4.0.2 | ||
with: | ||
path: target | ||
key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('**/Cargo.lock') }} | ||
|
||
- uses: actions-rs/[email protected].1 | ||
- uses: actions-rs/[email protected].3 | ||
with: | ||
command: build | ||
args: '--release' | ||
|
@@ -86,9 +68,17 @@ jobs: | |
tar czvf ../../poscan-consensus-${{ matrix.name }}.tar.gz poscan-consensus${{ matrix.suffix }} | ||
cd - | ||
- name: Package WASM Artifact | ||
if: matrix.name == 'linux-x86_64' | ||
run: | | ||
cd target/release/wbuild/poscan-runtime | ||
tar czvf ../../../../poscan_runtime-wasm32-unknown-unknown.tar.gz poscan_runtime.compact.compressed.wasm | ||
- name: Publish | ||
uses: softprops/action-gh-release@v0.1.15 | ||
uses: softprops/action-gh-release@v2.0.4 | ||
with: | ||
files: "poscan-consensus-*" | ||
files: | | ||
poscan-consensus-* | ||
poscan_runtime-* | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |