Skip to content

Commit

Permalink
Update actions (#15)
Browse files Browse the repository at this point in the history
Co-authored-by: Vladimir Istyufeev <vladimir@parity.io>
  • Loading branch information
pgherveou and rcny authored Jan 3, 2024
1 parent 2d93abc commit d427c42
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 68 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/build_and_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,13 @@ jobs:
- name: Package toolchain
run: ./package.sh

- name: Read version
id: version
run: echo "::set-output name=VERSION::$(cat version.txt)"

- name: Release
uses: ncipollo/release-action@v1
with:
draft: true
name: ${{ steps.version.outputs.VERSION }}
artifacts: "${{ env.ARTIFACT_NAME }}.tar.zst"
tag: "${{ env.ARTIFACT_NAME }}"
name: "${{ env.ARTIFACT_NAME }}"
66 changes: 0 additions & 66 deletions .github/workflows/build_and_upload_artifacts.yaml
Original file line number Diff line number Diff line change
@@ -1,66 +0,0 @@
name: Build and upload artifacts

on:
push:
branches:
- main

permissions:
contents: write

jobs:
build:
runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [ubuntu-20.04, macos-latest-xlarge]

steps:
- name: Free Disk Space (Ubuntu)
if: matrix.os == 'ubuntu-20.04'
uses: jlumbroso/free-disk-space@main
with:
tool-cache: true
android: true
dotnet: true
haskell: true
large-packages: true
docker-images: true
swap-storage: true

- uses: actions/checkout@v4

- name: Install ninja
if: matrix.os == 'ubuntu-20.04'
run: |
sudo apt update
sudo apt-get -y install ninja-build
- name: Install ninja
if: contains(matrix.os, 'macos')
run: |
brew install ninja
- name: Download source
run: ./clone.sh

- name: Apply patches
run: ./patch.sh

- name: Build toolchain
run: ./build.sh

# Push in the Github environment variable the name of the artifact
# Doing this now because in the following step the rust folder will
# be delated to save some space before installing the toolchain
- run: ./config.sh -artifact_name

- name: Package toolchain
run: ./package.sh

- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: "${{ env.ARTIFACT_NAME }}"
path: "${{ env.ARTIFACT_NAME }}.tar.zst"
1 change: 1 addition & 0 deletions version.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1.0.0

0 comments on commit d427c42

Please sign in to comment.