...
 
Commits (2)
  • Oleg Grenrus's avatar
    Add release.py · 2cff1a15
    Oleg Grenrus authored
    A script essentially runs `v2-install cabal-install:exe:cabal`,
    but does some simple setup, so the result is less luckily
    to be influences by environment.
    
    Also improve bootstrap to do out-of-tree builds.
    
    upload v2
    
    split-sections don't do anything on macOS, and make GHC fail, and also don't apply to all packages when specifid this way
    
    Use http, https tricky in some environments
    2cff1a15
  • Oleg Grenrus's avatar
    Merge pull request #6992 from phadej/release-py-3.4 · cdd8b926
    Oleg Grenrus authored
    Release py 3.4
    cdd8b926
......@@ -23,26 +23,20 @@ jobs:
- name: Set PATH
run: |
echo "::add-path::$HOME/.cabal/bin"
- name: Install newer Python3
run: |
add-apt-repository ppa:deadsnakes/ppa
apt-get update
apt-get install -y python3.8
- name: Update Hackage index
run: cabal v2-update
- uses: actions/checkout@v2
- name: Release project
run: |
cp cabal.project.release cabal.project
rm -rf cabal.project.local cabal.project.freeze
- name: Build
run: |
cabal v2-build cabal-install:exe:cabal
cp $(find dist-newstyle -type f -executable -name cabal) cabal.exe
- name: Smoke test
run: |
./cabal.exe --version
- name: Prepare for upload
run: xz -c < cabal.exe > cabal-artifact.xz
- uses: actions/upload-artifact@v1
- name: Package project
run: python3.8 release.py
- uses: actions/upload-artifact@v2
with:
name: cabal-linux-x86_64.xz
path: cabal-artifact.xz
name: cabal-linux
path: _build/artifacts/*
artifact-macos:
name: Artifact on macOS
......@@ -72,24 +66,12 @@ jobs:
- name: Update Hackage index
run: cabal v2-update
- uses: actions/checkout@v2
- name: Release project
run: |
cp cabal.project.release cabal.project
rm -rf cabal.project.local cabal.project.freeze
- name: Build
run: |
cabal v2-build cabal-install:exe:cabal
# macOS find doesn't know -executable
cp $(find dist-newstyle -type f -name cabal) cabal.exe
- name: Smoke test
run: |
./cabal.exe --version
- name: Prepare for upload
run: xz -c < cabal.exe > cabal-artifact.xz
- uses: actions/upload-artifact@v1
- name: Package project
run: python3 release.py
- uses: actions/upload-artifact@v2
with:
name: cabal-macos-x86_64.xz
path: cabal-artifact.xz
name: cabal-macos
path: _build/artifacts/*
artifact-windows:
name: Artifact on Windows
......@@ -114,24 +96,9 @@ jobs:
- name: Update Hackage index
run: cabal v2-update
- uses: actions/checkout@v2
- name: Release project
shell: bash
run: |
cp cabal.project.release cabal.project
rm -rf cabal.project.local cabal.project.freeze
- name: Build
shell: bash
run: |
cabal v2-build cabal-install:exe:cabal
cp dist-newstyle/build/x86_64-windows/ghc-8.6.5/cabal-install-3.4.0.0/x/cabal/build/cabal/cabal.exe cabal.exe
- name: Smoke test
shell: bash
run: |
./cabal.exe --version
- name: Prepare for upload
shell: bash
run: xz -c < cabal.exe > cabal-artifact.xz
- uses: actions/upload-artifact@v1
- name: Package project
run: python release.py
- uses: actions/upload-artifact@v2
with:
name: cabal-windows-x86_64.xz
path: cabal-artifact.xz
name: cabal-macos
path: _build/artifacts/*
......@@ -27,9 +27,15 @@ jobs:
- name: bootstrap.py
run: |
python3 bootstrap/bootstrap.py -w /opt/ghc/8.6.5/bin/ghc -d bootstrap/linux-8.6.5.json
- name: Smoke test
run: |
packages/tmp/bin/cabal --version
_build/bin/cabal --version
- uses: actions/upload-artifact@v2
with:
name: cabal-linux-bootstrapped
path: _build/artifacts/*
boostrap-macos:
name: Bootstrap on macOS
......@@ -52,4 +58,9 @@ jobs:
- name: Smoke test
run: |
packages/tmp/bin/cabal --version
_build/bin/cabal --version
- uses: actions/upload-artifact@v2
with:
name: cabal-macos-bootstrapped
path: _build/artifacts/*
......@@ -26,6 +26,8 @@ cabal-tests.log
/cabal-install/Setup
/cabal-install/source-file-list
# Output of release and bootstrap
_build
# editor temp files
......
......@@ -23,26 +23,20 @@ jobs:
- name: Set PATH
run: |
echo "::add-path::$HOME/.cabal/bin"
- name: Install newer Python3
run: |
add-apt-repository ppa:deadsnakes/ppa
apt-get update
apt-get install -y python3.8
- name: Update Hackage index
run: cabal v2-update
- uses: actions/checkout@v2
- name: Release project
run: |
cp cabal.project.release cabal.project
rm -rf cabal.project.local cabal.project.freeze
- name: Build
run: |
cabal v2-build cabal-install:exe:cabal
cp $(find dist-newstyle -type f -executable -name cabal) cabal.exe
- name: Smoke test
run: |
./cabal.exe --version
- name: Prepare for upload
run: xz -c < cabal.exe > cabal-artifact.xz
- uses: actions/upload-artifact@v1
- name: Package project
run: python3.8 release.py
- uses: actions/upload-artifact@v2
with:
name: cabal-linux-x86_64.xz
path: cabal-artifact.xz
name: cabal-linux
path: _build/artifacts/*
artifact-macos:
name: Artifact on macOS
......@@ -72,24 +66,12 @@ jobs:
- name: Update Hackage index
run: cabal v2-update
- uses: actions/checkout@v2
- name: Release project
run: |
cp cabal.project.release cabal.project
rm -rf cabal.project.local cabal.project.freeze
- name: Build
run: |
cabal v2-build cabal-install:exe:cabal
# macOS find doesn't know -executable
cp $(find dist-newstyle -type f -name cabal) cabal.exe
- name: Smoke test
run: |
./cabal.exe --version
- name: Prepare for upload
run: xz -c < cabal.exe > cabal-artifact.xz
- uses: actions/upload-artifact@v1
- name: Package project
run: python3 release.py
- uses: actions/upload-artifact@v2
with:
name: cabal-macos-x86_64.xz
path: cabal-artifact.xz
name: cabal-macos
path: _build/artifacts/*
artifact-windows:
name: Artifact on Windows
......@@ -114,24 +96,9 @@ jobs:
- name: Update Hackage index
run: cabal v2-update
- uses: actions/checkout@v2
- name: Release project
shell: bash
run: |
cp cabal.project.release cabal.project
rm -rf cabal.project.local cabal.project.freeze
- name: Build
shell: bash
run: |
cabal v2-build cabal-install:exe:cabal
cp dist-newstyle/build/x86_64-windows/ghc-8.6.5/cabal-install-3.4.0.0/x/cabal/build/cabal/cabal.exe cabal.exe
- name: Smoke test
shell: bash
run: |
./cabal.exe --version
- name: Prepare for upload
shell: bash
run: xz -c < cabal.exe > cabal-artifact.xz
- uses: actions/upload-artifact@v1
- name: Package project
run: python release.py
- uses: actions/upload-artifact@v2
with:
name: cabal-windows-x86_64.xz
path: cabal-artifact.xz
name: cabal-macos
path: _build/artifacts/*
......@@ -27,9 +27,15 @@ jobs:
- name: bootstrap.py
run: |
python3 bootstrap/bootstrap.py -w /opt/ghc/8.6.5/bin/ghc -d bootstrap/linux-8.6.5.json
- name: Smoke test
run: |
packages/tmp/bin/cabal --version
_build/bin/cabal --version
- uses: actions/upload-artifact@v2
with:
name: cabal-linux-bootstrapped
path: _build/artifacts/*
boostrap-macos:
name: Bootstrap on macOS
......@@ -52,4 +58,9 @@ jobs:
- name: Smoke test
run: |
packages/tmp/bin/cabal --version
_build/bin/cabal --version
- uses: actions/upload-artifact@v2
with:
name: cabal-macos-bootstrapped
path: _build/artifacts/*
This diff is collapsed.
......@@ -20,7 +20,7 @@ Copyright: 2003-2020, Cabal Development Team
Category: Distribution
Build-type: Simple
Extra-Source-Files:
README.md bash-completion/cabal bootstrap.sh changelog
README.md bash-completion/cabal changelog
-- Generated with 'make gen-extra-source-files'
-- Do NOT edit this section manually; instead, run the script.
......
......@@ -20,7 +20,7 @@ Copyright: 2003-2020, Cabal Development Team
Category: Distribution
Build-type: Simple
Extra-Source-Files:
README.md bash-completion/cabal bootstrap.sh changelog
README.md bash-completion/cabal changelog
-- Generated with 'make gen-extra-source-files'
-- Do NOT edit this section manually; instead, run the script.
......
......@@ -20,7 +20,7 @@ Copyright: 2003-2020, Cabal Development Team
Category: Distribution
Build-type: Simple
Extra-Source-Files:
README.md bash-completion/cabal bootstrap.sh changelog
README.md bash-completion/cabal changelog
-- Generated with 'make gen-extra-source-files'
-- Do NOT edit this section manually; instead, run the script.
......
......@@ -303,7 +303,7 @@ Copyright: 2003-2020, Cabal Development Team
Category: Distribution
Build-type: Simple
Extra-Source-Files:
README.md bash-completion/cabal bootstrap.sh changelog
README.md bash-completion/cabal changelog
-- Generated with 'make gen-extra-source-files'
-- Do NOT edit this section manually; instead, run the script.
......
This diff is collapsed.