Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/functional-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ jobs:
strategy:
fail-fast: false
matrix:
version: ["4.0", "3.3", "3.2"]
version: ["4.0", "3.2"]
runs-on: ubuntu-latest
steps:
- name: Checkout ${{ github.repository }}
uses: actions/checkout@v5
uses: actions/checkout@v6
- name: Setup COBOL
uses: ./
with:
Expand All @@ -50,7 +50,7 @@ jobs:
force: ["true", "false"]
steps:
- name: Checkout ${{ github.repository }}
uses: actions/checkout@v5
uses: actions/checkout@v6
- name: Setup COBOL 1
id: setup-cobol-1
uses: ./
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ language.
```yaml
- uses: fabasoad/setup-cobol-action@v1
with:
# (Optional) GnuCOBOL version. Defaults to 3.3.
version: "3.3"
# (Optional) GnuCOBOL version. Defaults to 3.2.
version: "3.2"
# (Optional) If "true" it installs cobc even if it is already installed on a
# runner. Otherwise, skips installation.
force: "false"
Expand Down Expand Up @@ -53,7 +53,7 @@ jobs:
name: Setup
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
- uses: fabasoad/setup-cobol-action@v1
- name: Run script
run: |
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ inputs:
version:
description: "GnuCOBOL version."
required: false
default: "3.3"
default: "3.2"
force:
description: |
If "true" it installs cobc even if it is already installed on a runner.
Expand Down
6 changes: 1 addition & 5 deletions src/install-cobc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,7 @@ main() {
sudo apt-get -y install ranger autoconf build-essential

mkdir -p "${bin_path}"
if [ "${input_version}" = "3.3" ]; then
url="https://ci.appveyor.com/api/projects/GitMensch/gnucobol-3-x/artifacts/gnucobol-3.3-dev.tar.gz?job=Image:%20Ubuntu2204"
else
url="https://sourceforge.net/projects/open-cobol/files/gnucobol/${minor_version}/gnucobol-${input_version}.tar.gz"
fi
url="https://sourceforge.net/projects/open-cobol/files/gnucobol/${minor_version}/gnucobol-${input_version}.tar.gz"
log_info "Downloading ${url}"
curl -sLk "${url}" -o "${bin_path}/gnucobol.tar.gz"
tar -xvf "${bin_path}/gnucobol.tar.gz" -C "${bin_path}" --strip-components 1
Expand Down