Skip to content

Commit

Permalink
Build distribuition and upload it
Browse files Browse the repository at this point in the history
  • Loading branch information
Eduardo Leegwater Simões committed Oct 14, 2023
1 parent f757e68 commit cc6545f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 10 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/dusk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,7 @@ jobs:
run: brew install ninja openssl@3

- name: Run build
run: ./x build --host ${{ matrix.target }}

- name: Archive build directory
run: |
tar -czvf duskc.tar.gz \
build/${{ matrix.target }}/stage2*
run: ./x dist --host ${{ matrix.target }}

- name: Set artifact name
id: artifact-name
Expand All @@ -60,4 +55,4 @@ jobs:
uses: actions/upload-artifact@v3
with:
name: ${{ steps.artifact-name.outputs.name }}
path: duskc.tar.gz
path: build/dist/
16 changes: 13 additions & 3 deletions config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,15 @@ change-id = 115898
[build]
# We want a full stage 2 build, with all the optimizations from nightly
build-stage = 2
test-stage = 2
doc-stage = 2
dist-stage = 2

# We want all the tools
# But we don't need to run tests or build docs
docs = false

test-stage = 0
doc-stage = 0

# We want all the tools available
extended = true

# These are the two platforms for which we support building contracts
Expand All @@ -26,3 +31,8 @@ download-rustc = false

# Required for WASM targets
lld = true

[dist]
compression-formats = ["gz"]
# fast, balanced, best
compression-profile = "balanced"

0 comments on commit cc6545f

Please sign in to comment.